@dynamic-labs/sdk-api 0.0.252 → 0.0.254
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
CHANGED
|
@@ -10,11 +10,12 @@ Documentation on the current set of REST APIs can be found at: https://docs.dyna
|
|
|
10
10
|
- These are endpoints used exclusively by the [Dynamic React SDK](https://www.npmjs.com/package/@dynamic-labs/sdk-react). Several endpoints in these APIs require a [JWT](https://docs.dynamic.xyz/react-sdk/references/user-payload#-the-jwt-update) created by the `verify` or `signin` endpoints, and are specific to a user in the SDK's environment. These APIs are typically used on a client site or frontend to enhance their customers' experience.
|
|
11
11
|
- Dashboard APIs
|
|
12
12
|
- These endpoints are used by admins of an organization to update site settings and manage users of the environment. These APIs require an [API token](https://docs.dynamic.xyz/api-reference/overview#authentication) scoped for a specific environment. These APIs are typically used on a client backend, to manage all their users' data and make corresponding settings changes that affect all users of a site.
|
|
13
|
-
- The most commonly used API among the
|
|
13
|
+
- The most commonly used API among the dashboard APIs is `UsersApi`
|
|
14
|
+
- You can read about all the other available APIs [here](https://docs.dynamic.xyz/api-reference/overview)
|
|
14
15
|
|
|
15
16
|
# Examples
|
|
16
17
|
|
|
17
|
-
This section provides an example of how to use `SDKApi`. This would be similar to using the other available generated APIs, like `
|
|
18
|
+
This section provides an example of how to use `SDKApi`. This would be similar to using the other available generated APIs, like `UsersApi` or `ExportsApi`, etc.
|
|
18
19
|
|
|
19
20
|
### SdkApi
|
|
20
21
|
|
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ function ProjectSettingsSdkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
22
|
'walletConnect': !runtime.exists(json, 'walletConnect') ? undefined : ProjectSettingsSdkWalletConnect.ProjectSettingsSdkWalletConnectFromJSON(json['walletConnect']),
|
|
23
23
|
'confirmEmailProviderForVerify': !runtime.exists(json, 'confirmEmailProviderForVerify') ? undefined : json['confirmEmailProviderForVerify'],
|
|
24
24
|
'displayDynamicMessaging': !runtime.exists(json, 'displayDynamicMessaging') ? undefined : json['displayDynamicMessaging'],
|
|
25
|
+
'hideNetworkInDynamicWidget': !runtime.exists(json, 'hideNetworkInDynamicWidget') ? undefined : json['hideNetworkInDynamicWidget'],
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
function ProjectSettingsSdkToJSON(value) {
|
|
@@ -39,6 +40,7 @@ function ProjectSettingsSdkToJSON(value) {
|
|
|
39
40
|
'walletConnect': ProjectSettingsSdkWalletConnect.ProjectSettingsSdkWalletConnectToJSON(value.walletConnect),
|
|
40
41
|
'confirmEmailProviderForVerify': value.confirmEmailProviderForVerify,
|
|
41
42
|
'displayDynamicMessaging': value.displayDynamicMessaging,
|
|
43
|
+
'hideNetworkInDynamicWidget': value.hideNetworkInDynamicWidget,
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -59,6 +59,12 @@ export interface ProjectSettingsSdk {
|
|
|
59
59
|
* @memberof ProjectSettingsSdk
|
|
60
60
|
*/
|
|
61
61
|
displayDynamicMessaging?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof ProjectSettingsSdk
|
|
66
|
+
*/
|
|
67
|
+
hideNetworkInDynamicWidget?: boolean;
|
|
62
68
|
}
|
|
63
69
|
export declare function ProjectSettingsSdkFromJSON(json: any): ProjectSettingsSdk;
|
|
64
70
|
export declare function ProjectSettingsSdkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettingsSdk;
|
|
@@ -18,6 +18,7 @@ function ProjectSettingsSdkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
'walletConnect': !exists(json, 'walletConnect') ? undefined : ProjectSettingsSdkWalletConnectFromJSON(json['walletConnect']),
|
|
19
19
|
'confirmEmailProviderForVerify': !exists(json, 'confirmEmailProviderForVerify') ? undefined : json['confirmEmailProviderForVerify'],
|
|
20
20
|
'displayDynamicMessaging': !exists(json, 'displayDynamicMessaging') ? undefined : json['displayDynamicMessaging'],
|
|
21
|
+
'hideNetworkInDynamicWidget': !exists(json, 'hideNetworkInDynamicWidget') ? undefined : json['hideNetworkInDynamicWidget'],
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
function ProjectSettingsSdkToJSON(value) {
|
|
@@ -35,6 +36,7 @@ function ProjectSettingsSdkToJSON(value) {
|
|
|
35
36
|
'walletConnect': ProjectSettingsSdkWalletConnectToJSON(value.walletConnect),
|
|
36
37
|
'confirmEmailProviderForVerify': value.confirmEmailProviderForVerify,
|
|
37
38
|
'displayDynamicMessaging': value.displayDynamicMessaging,
|
|
39
|
+
'hideNetworkInDynamicWidget': value.hideNetworkInDynamicWidget,
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
|