@sendly/node 3.19.0 → 3.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -621,14 +621,14 @@ const result = await client.enterprise.provision({
|
|
|
621
621
|
name: 'Acme Insurance - Austin',
|
|
622
622
|
sourceWorkspaceId: 'ws_verified',
|
|
623
623
|
creditAmount: 5000,
|
|
624
|
-
creditSourceWorkspaceId: '
|
|
624
|
+
creditSourceWorkspaceId: 'SOURCE_WORKSPACE_ID',
|
|
625
625
|
keyName: 'Production',
|
|
626
626
|
keyType: 'live',
|
|
627
627
|
generateOptInPage: true
|
|
628
628
|
});
|
|
629
629
|
|
|
630
630
|
console.log(result.workspace.id);
|
|
631
|
-
console.log(result.
|
|
631
|
+
console.log(result.key?.key); // shown once
|
|
632
632
|
console.log(result.optInPage?.url); // hosted opt-in page
|
|
633
633
|
```
|
|
634
634
|
|
|
@@ -698,7 +698,7 @@ const key = await client.enterprise.workspaces.createKey('ws_xxx', {
|
|
|
698
698
|
name: 'Production',
|
|
699
699
|
type: 'live'
|
|
700
700
|
});
|
|
701
|
-
console.log(key.
|
|
701
|
+
console.log(key.key); // shown once
|
|
702
702
|
|
|
703
703
|
// Revoke a key
|
|
704
704
|
await client.enterprise.workspaces.revokeKey('ws_xxx', 'key_abc');
|
package/dist/index.d.mts
CHANGED
|
@@ -1614,11 +1614,12 @@ interface ProvisionWorkspaceResult {
|
|
|
1614
1614
|
balance: number;
|
|
1615
1615
|
transferred?: number;
|
|
1616
1616
|
};
|
|
1617
|
-
|
|
1617
|
+
key?: {
|
|
1618
1618
|
id: string;
|
|
1619
1619
|
name: string;
|
|
1620
|
-
|
|
1621
|
-
|
|
1620
|
+
key: string;
|
|
1621
|
+
keyPrefix: string;
|
|
1622
|
+
type: string;
|
|
1622
1623
|
};
|
|
1623
1624
|
optInPage?: {
|
|
1624
1625
|
url: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1614,11 +1614,12 @@ interface ProvisionWorkspaceResult {
|
|
|
1614
1614
|
balance: number;
|
|
1615
1615
|
transferred?: number;
|
|
1616
1616
|
};
|
|
1617
|
-
|
|
1617
|
+
key?: {
|
|
1618
1618
|
id: string;
|
|
1619
1619
|
name: string;
|
|
1620
|
-
|
|
1621
|
-
|
|
1620
|
+
key: string;
|
|
1621
|
+
keyPrefix: string;
|
|
1622
|
+
type: string;
|
|
1622
1623
|
};
|
|
1623
1624
|
optInPage?: {
|
|
1624
1625
|
url: string;
|