Skip to content

Commit 078415b

Browse files
Merge pull request #1783 from codatio/PEP-958/update-sdk-type-package-references
PEP-958 - Update SDK type package references to @codat/sdk-link-types
2 parents 707e927 + 90632db commit 078415b

5 files changed

Lines changed: 26 additions & 26 deletions

File tree

blog/241124-bank-feeds-sdk.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Building and launching a best-in-class bank feeds solution has never been easier
1414

1515
## What's new?
1616

17-
Our new [Bank Feeds SDK](https://www.npmjs.com/package/@codat/sdk-bank-feeds-types) brings together all the complex pieces to create a simple Bank Feeds setup experience.
17+
Our new [Bank Feeds SDK](https://www.npmjs.com/package/@codat/sdk-link-types) brings together all the complex pieces to create a simple Bank Feeds setup experience.
1818

1919
It leverages our [Link SDK](/auth-flow/authorize-embedded-link) to allow your users to quickly and securely share access to their accounting software. It also enables them to set up the mapping between your accounts and the accounts in their software in one seamless flow.
2020

21-
All of this is included in a single [low-code JavaScript component](https://www.npmjs.com/package/@codat/sdk-bank-feeds-types). Our rich configuration properties allow your application to interact with the SDK and customize text and branding in a way that creates a trusted, compelling experience.
21+
All of this is included in a single [low-code JavaScript component](https://www.npmjs.com/package/@codat/sdk-link-types). Our rich configuration properties allow your application to interact with the SDK and customize text and branding in a way that creates a trusted, compelling experience.
2222

2323
This is supported by easier creation of many source accounts at once via our new batch [Create source accounts](/bank-feeds-api#/operations/create-batch-source-account) endpoint.
2424

@@ -54,14 +54,14 @@ We also recommend using our [Connections SDK](/auth-flow/optimize/connection-man
5454

5555
## How to get started?
5656

57-
You can access the SDK on [NPM](https://www.npmjs.com/package/@codat/sdk-bank-feeds-types). We recommend all clients already using our [Bank Feeds](/bank-feeds/overview) product to migrate to the Bank Feeds SDK.
57+
You can access the SDK on [NPM](https://www.npmjs.com/package/@codat/sdk-link-types). We recommend all clients already using our [Bank Feeds](/bank-feeds/overview) product to migrate to the Bank Feeds SDK.
5858

5959
First, create a component which initializes the SDK:
6060

6161
```react
6262
import React, { useEffect, useState } from "react";
6363
import ReactDOM from "react-dom/client";
64-
import { CodatBankFeedsProps, initializeCodatBankFeeds } from "@codat/sdk-bank-feeds-types";
64+
import { CodatBankFeedsProps, initCodatBankFeeds } from "@codat/sdk-link-types/bank-feeds";
6565
6666
const CodatBankFeeds: React.FC<CodatBankFeedsProps> = (props: CodatBankFeedsProps) => {
6767
const [componentMount, setComponentMount] = useState<HTMLDivElement | null>(
@@ -71,7 +71,7 @@ First, create a component which initializes the SDK:
7171
useEffect(() => {
7272
const target = componentMount;
7373
if (target && target.children.length === 0) {
74-
initializeCodatBankFeeds(target, props);
74+
initCodatBankFeeds(target, props);
7575
}
7676
// eslint-disable-next-line react-hooks/exhaustive-deps
7777
}, [componentMount]);

code_utils/docker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@codat/sync-for-expenses": "^*",
2323
"@codat/sync-for-payables": "^*",
2424
"@codat/sync-for-payroll": "^*",
25-
"@codat/sdk-connections": "^*",
25+
"@codat/sdk-link-types": "^*",
2626
"axios": "^1.0.0"
2727
},
2828
"devDependencies": {

docs/auth-flow/optimize/connection-management.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ To display the origins you previously registered for your instance, use the [Get
153153

154154
:::tip Install the npm package
155155

156-
Take advantage of our [npm package](https://www.npmjs.com/package/@codat/sdk-connections) so you don't have to manually import and maintain type definitions. You will benefit from it the most if you are using Typescript.
156+
Take advantage of our [npm package](https://www.npmjs.com/package/@codat/sdk-link-types) so you don't have to manually import and maintain type definitions. You will benefit from it the most if you are using Typescript.
157157

158-
`$ npm i -S @codat/sdk-connections`
158+
`$ npm i -S @codat/sdk-link-types`
159159

160160
:::
161161

@@ -180,7 +180,7 @@ You can copy and paste the example <a href="https://github.com/codatio/sdk-conne
180180
import {
181181
DisconnectCallbackArgs,
182182
ErrorCallbackArgs,
183-
} from "@codat/sdk-connections";
183+
} from "@codat/sdk-link-types/connections";
184184

185185
import { CodatConnections } from "./components/CodatConnections";
186186
import { useState } from "react";
@@ -225,7 +225,7 @@ export const ConnectionManagement = ({
225225
- Allowlist Codat by adding `*.codat.io` to `default-src` (or each of `script-src, style-src, font-src, connect-src, img-src`).
226226
- Add `unsafe-inline` to `style-src`. Don't use a hash because this can change at any time without warning.
227227

228-
4. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-connections`. Otherwise, delete the type-related code in the snippets.
228+
4. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-link-types`. Otherwise, delete the type-related code in the snippets.
229229

230230
</TabItem>
231231

@@ -263,7 +263,7 @@ import {
263263
DisconnectCallbackArgs,
264264
ErrorCallbackArgs,
265265
ReconnectCallbackArgs,
266-
} from "@codat/sdk-connections";
266+
} from "@codat/sdk-link-types/connections";
267267

268268
import { CodatConnections } from "./components/CodatConnections";
269269
import Image from "next/image";
@@ -305,7 +305,7 @@ export default function Home() {
305305
- Allowlist Codat by adding `*.codat.io` to `default-src` (or each of `script-src, style-src, font-src, connect-src, img-src`).
306306
- Add `unsafe-inline` to `style-src`. Do _not_ use a hash because this can change at any time without warning.
307307

308-
4. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-connections`. Otherwise, delete the type-related code in the snippets.
308+
4. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-link-types`. Otherwise, delete the type-related code in the snippets.
309309

310310
</TabItem>
311311

@@ -375,7 +375,7 @@ const openModal = () => {
375375
- Allowlist Codat by adding `*.codat.io` to `default-src` (or each of `script-src, style-src, font-src, connect-src, img-src`).
376376
- Add `unsafe-inline` to `style-src`. Do _not_ use a hash because this can change at any time without warning.
377377
378-
5. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-connections`. Otherwise, delete the type-related code in the snippets.
378+
5. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-link-types`. Otherwise, delete the type-related code in the snippets.
379379
380380
</TabItem>
381381
@@ -445,7 +445,7 @@ onError(error) {
445445
- Allowlist Codat by adding `*.codat.io` to `default-src` (or each of `script-src, style-src, font-src, connect-src, img-src`).
446446
- Add `unsafe-inline` to `style-src`. Do _not_ use a hash because this can change at any time without warning.
447447
448-
5. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-connections`. Otherwise, delete the type-related code in the snippets.
448+
5. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-link-types`. Otherwise, delete the type-related code in the snippets.
449449
450450
</TabItem>
451451
@@ -498,7 +498,7 @@ We suggest wrapping the `CodatConnections` component in a modal so that you can
498498
- Allowlist Codat by adding `*.codat.io` to `default-src` (or each of `script-src, style-src, font-src, connect-src, img-src`).
499499
- Add `unsafe-inline` to `style-src`. Do _not_ use a hash because this can change at any time without warning.
500500
501-
5. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-connections`. Otherwise, delete the type-related code in the snippets.
501+
5. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-link-types`. Otherwise, delete the type-related code in the snippets.
502502
503503
</TabItem>
504504
@@ -563,7 +563,7 @@ We suggest wrapping the `CodatConnections` component in a modal so that you can
563563
- Allowlist Codat by adding `*.codat.io` to `default-src` (or each of `script-src, style-src, font-src, connect-src, img-src`).
564564
- Add `unsafe-inline` to `style-src`. Do _not_ use a hash because this can change at any time without warning.
565565
566-
5. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-connections`. Otherwise, delete the type-related code in the snippets.
566+
5. **If you are using TypeScript**, extend your type declarations with our types by installing the package using `npm install --save-dev @codat/sdk-link-types`. Otherwise, delete the type-related code in the snippets.
567567
568568
</TabItem>
569569

docs/bank-feeds/bank-feeds-sdk.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Building and launching a best-in-class bank feeds solution has never been easier
1818

1919
## Overview
2020

21-
Our new [Bank Feeds SDK](https://www.npmjs.com/package/@codat/sdk-bank-feeds-types) brings together all the complex pieces required to create a simple Bank Feeds setup experience.
21+
Our new [Bank Feeds SDK](https://www.npmjs.com/package/@codat/sdk-link-types) brings together all the complex pieces required to create a simple Bank Feeds setup experience.
2222

2323
It leverages our [Link SDK](/auth-flow/authorize-embedded-link) to allow your users to quickly and securely share access to their accounting software. It also enables them to set up the mapping between your accounts and the accounts in their software in one seamless flow.
2424

25-
All of this is included in a single low-code JavaScript component (available on [NPM](https://www.npmjs.com/package/@codat/sdk-bank-feeds-types)). Its rich configuration properties allow your application to interact with the SDK and customize text and branding in a way that creates a trusted and compelling user experience.
25+
All of this is included in a single low-code JavaScript component (available on [NPM](https://www.npmjs.com/package/@codat/sdk-link-types)). Its rich configuration properties allow your application to interact with the SDK and customize text and branding in a way that creates a trusted and compelling user experience.
2626

2727
Codat supports this by providing easier creation of many source accounts at once via our new batch [Create source accounts](/bank-feeds-api#/operations/create-batch-source-account) endpoint.
2828

@@ -48,26 +48,26 @@ We also recommend using our [Connections SDK](/auth-flow/optimize/connection-man
4848

4949
## Get started
5050

51-
You can access the SDK on [NPM](https://www.npmjs.com/package/@codat/sdk-bank-feeds-types). We recommend all clients already using our [Bank Feeds](/bank-feeds/overview) product to migrate to the Bank Feeds SDK.
51+
You can access the SDK on [NPM](https://www.npmjs.com/package/@codat/sdk-link-types). We recommend all clients already using our [Bank Feeds](/bank-feeds/overview) product to migrate to the Bank Feeds SDK.
5252

5353
##### NPM
5454

5555
```sh
56-
npm add @codat/sdk-bank-feeds-types
56+
npm add @codat/sdk-link-types/bank-feeds
5757
```
5858

5959
##### Yarn
6060

6161
```sh
62-
yarn add @codat/sdk-bank-feeds-types
62+
yarn add @codat/sdk-link-types/bank-feeds
6363
```
6464

6565
Create a component which initializes the SDK:
6666

6767
```react
6868
import React, { useEffect, useState } from "react";
6969
import ReactDOM from "react-dom/client";
70-
import { CodatBankFeedsProps, initializeCodatBankFeeds } from "@codat/sdk-bank-feeds-types";
70+
import { CodatBankFeedsProps, initCodatBankFeeds } from "@codat/sdk-link-types/bank-feeds";
7171
7272
const CodatBankFeeds: React.FC<CodatBankFeedsProps> = (props: CodatBankFeedsProps) => {
7373
const [componentMount, setComponentMount] = useState<HTMLDivElement | null>(
@@ -77,7 +77,7 @@ Create a component which initializes the SDK:
7777
useEffect(() => {
7878
const target = componentMount;
7979
if (target && target.children.length === 0) {
80-
initializeCodatBankFeeds(target, props);
80+
initCodatBankFeeds(target, props);
8181
}
8282
// eslint-disable-next-line react-hooks/exhaustive-deps
8383
}, [componentMount]);
@@ -105,7 +105,7 @@ Use the component in your solution as needed:
105105

106106
**Conditional steps**
107107

108-
- **If you're using TypeScript**, extend your type declarations with our types by installing the types package using `npm install --save-dev @codat/sdk-bank-feeds-types`. Otherwise, delete the type-related code in the snippets.
108+
- **If you're using TypeScript**, extend your type declarations with our types by installing the types package using `npm install --save-dev @codat/sdk-link-types/bank-feeds`. Otherwise, delete the type-related code in the snippets.
109109
- **If you're using content security policy (CSP) headers**, edit these headers:
110110
- Allowlist Codat by adding `*.codat.io` to `default-src` (or each of `script-src`, `style-src`, `font-src`, `connect-src`, `img-src`).
111111
- Add `unsafe-inline` to `style-src`. Do _not_ use a hash because this can change at any time without warning.

docs/bank-feeds/setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ Our low-code [Bank Feeds SDK](/bank-feeds/create-account) lets you build a seaml
8989
##### NPM
9090

9191
```sh
92-
npm add @codat/sdk-bank-feeds-types
92+
npm add @codat/sdk-link-types/bank-feeds
9393
```
9494

9595
##### Yarn
9696

9797
```sh
98-
yarn add @codat/sdk-bank-feeds-types
98+
yarn add @codat/sdk-link-types/bank-feeds
9999
```
100100

101101
[Read more...](/bank-feeds/bank-feeds-sdk)

0 commit comments

Comments
 (0)