@dynamic-labs/sdk-api 0.0.317 → 0.0.319
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/package.json +1 -1
- package/src/apis/UsersApi.cjs +3 -4
- package/src/apis/UsersApi.d.ts +2 -2
- package/src/apis/UsersApi.js +3 -4
- package/src/apis/WalletsApi.cjs +4 -2
- package/src/apis/WalletsApi.d.ts +4 -2
- package/src/apis/WalletsApi.js +4 -2
- package/src/models/InternalUserFields.cjs +2 -0
- package/src/models/InternalUserFields.d.ts +6 -0
- package/src/models/InternalUserFields.js +2 -0
package/package.json
CHANGED
package/src/apis/UsersApi.cjs
CHANGED
|
@@ -37,7 +37,6 @@ require('../models/RoleEnum.cjs');
|
|
|
37
37
|
require('../models/SubscriptionAdvancedScopeEnum.cjs');
|
|
38
38
|
require('../models/SubscriptionFreeScopeEnum.cjs');
|
|
39
39
|
require('../models/UnprocessableEntityErrorCode.cjs');
|
|
40
|
-
var UserFields = require('../models/UserFields.cjs');
|
|
41
40
|
var UserResponse = require('../models/UserResponse.cjs');
|
|
42
41
|
var UsersResponse = require('../models/UsersResponse.cjs');
|
|
43
42
|
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
@@ -55,8 +54,8 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
55
54
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
56
55
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createUser.');
|
|
57
56
|
}
|
|
58
|
-
if (requestParameters.
|
|
59
|
-
throw new runtime.RequiredError('
|
|
57
|
+
if (requestParameters.internalUserFields === null || requestParameters.internalUserFields === undefined) {
|
|
58
|
+
throw new runtime.RequiredError('internalUserFields', 'Required parameter requestParameters.internalUserFields was null or undefined when calling createUser.');
|
|
60
59
|
}
|
|
61
60
|
const queryParameters = {};
|
|
62
61
|
const headerParameters = {};
|
|
@@ -73,7 +72,7 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
73
72
|
method: 'POST',
|
|
74
73
|
headers: headerParameters,
|
|
75
74
|
query: queryParameters,
|
|
76
|
-
body:
|
|
75
|
+
body: InternalUserFields.InternalUserFieldsToJSON(requestParameters.internalUserFields),
|
|
77
76
|
}, initOverrides);
|
|
78
77
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponse.UserResponseFromJSON(jsonValue));
|
|
79
78
|
});
|
package/src/apis/UsersApi.d.ts
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { InternalUserFields,
|
|
13
|
+
import { InternalUserFields, UserResponse, UserSearchFilterParams, UsersResponse } from '../models';
|
|
14
14
|
export interface CreateUserRequest {
|
|
15
15
|
environmentId: string;
|
|
16
|
-
|
|
16
|
+
internalUserFields: InternalUserFields;
|
|
17
17
|
}
|
|
18
18
|
export interface DeleteUserRequest {
|
|
19
19
|
userId: string;
|
package/src/apis/UsersApi.js
CHANGED
|
@@ -33,7 +33,6 @@ import '../models/RoleEnum.js';
|
|
|
33
33
|
import '../models/SubscriptionAdvancedScopeEnum.js';
|
|
34
34
|
import '../models/SubscriptionFreeScopeEnum.js';
|
|
35
35
|
import '../models/UnprocessableEntityErrorCode.js';
|
|
36
|
-
import { UserFieldsToJSON } from '../models/UserFields.js';
|
|
37
36
|
import { UserResponseFromJSON } from '../models/UserResponse.js';
|
|
38
37
|
import { UsersResponseFromJSON } from '../models/UsersResponse.js';
|
|
39
38
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
@@ -51,8 +50,8 @@ class UsersApi extends BaseAPI {
|
|
|
51
50
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
52
51
|
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createUser.');
|
|
53
52
|
}
|
|
54
|
-
if (requestParameters.
|
|
55
|
-
throw new RequiredError('
|
|
53
|
+
if (requestParameters.internalUserFields === null || requestParameters.internalUserFields === undefined) {
|
|
54
|
+
throw new RequiredError('internalUserFields', 'Required parameter requestParameters.internalUserFields was null or undefined when calling createUser.');
|
|
56
55
|
}
|
|
57
56
|
const queryParameters = {};
|
|
58
57
|
const headerParameters = {};
|
|
@@ -69,7 +68,7 @@ class UsersApi extends BaseAPI {
|
|
|
69
68
|
method: 'POST',
|
|
70
69
|
headers: headerParameters,
|
|
71
70
|
query: queryParameters,
|
|
72
|
-
body:
|
|
71
|
+
body: InternalUserFieldsToJSON(requestParameters.internalUserFields),
|
|
73
72
|
}, initOverrides);
|
|
74
73
|
return new JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
75
74
|
});
|
package/src/apis/WalletsApi.cjs
CHANGED
|
@@ -49,7 +49,8 @@ require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
|
49
49
|
*/
|
|
50
50
|
class WalletsApi extends runtime.BaseAPI {
|
|
51
51
|
/**
|
|
52
|
-
* Creates a new embedded wallet for a user given an email. If
|
|
52
|
+
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
53
|
+
* Creates a new embedded wallet for a user given an identifier
|
|
53
54
|
*/
|
|
54
55
|
createEmbeddedWalletRaw(requestParameters, initOverrides) {
|
|
55
56
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -80,7 +81,8 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
83
|
/**
|
|
83
|
-
* Creates a new embedded wallet for a user given an email. If
|
|
84
|
+
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
85
|
+
* Creates a new embedded wallet for a user given an identifier
|
|
84
86
|
*/
|
|
85
87
|
createEmbeddedWallet(requestParameters, initOverrides) {
|
|
86
88
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
package/src/apis/WalletsApi.d.ts
CHANGED
|
@@ -33,11 +33,13 @@ export interface GetWalletsByUserIdRequest {
|
|
|
33
33
|
*/
|
|
34
34
|
export declare class WalletsApi extends runtime.BaseAPI {
|
|
35
35
|
/**
|
|
36
|
-
* Creates a new embedded wallet for a user given an email. If
|
|
36
|
+
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
37
|
+
* Creates a new embedded wallet for a user given an identifier
|
|
37
38
|
*/
|
|
38
39
|
createEmbeddedWalletRaw(requestParameters: CreateEmbeddedWalletRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<UserResponse>>;
|
|
39
40
|
/**
|
|
40
|
-
* Creates a new embedded wallet for a user given an email. If
|
|
41
|
+
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
42
|
+
* Creates a new embedded wallet for a user given an identifier
|
|
41
43
|
*/
|
|
42
44
|
createEmbeddedWallet(requestParameters: CreateEmbeddedWalletRequest, initOverrides?: RequestInit): Promise<UserResponse>;
|
|
43
45
|
/**
|
package/src/apis/WalletsApi.js
CHANGED
|
@@ -45,7 +45,8 @@ import '../models/VisitorFilterableFieldsEnum.js';
|
|
|
45
45
|
*/
|
|
46
46
|
class WalletsApi extends BaseAPI {
|
|
47
47
|
/**
|
|
48
|
-
* Creates a new embedded wallet for a user given an email. If
|
|
48
|
+
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
49
|
+
* Creates a new embedded wallet for a user given an identifier
|
|
49
50
|
*/
|
|
50
51
|
createEmbeddedWalletRaw(requestParameters, initOverrides) {
|
|
51
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -76,7 +77,8 @@ class WalletsApi extends BaseAPI {
|
|
|
76
77
|
});
|
|
77
78
|
}
|
|
78
79
|
/**
|
|
79
|
-
* Creates a new embedded wallet for a user given an email. If
|
|
80
|
+
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
81
|
+
* Creates a new embedded wallet for a user given an identifier
|
|
80
82
|
*/
|
|
81
83
|
createEmbeddedWallet(requestParameters, initOverrides) {
|
|
82
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -33,6 +33,7 @@ function InternalUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'emailNotification': !runtime.exists(json, 'emailNotification') ? undefined : json['emailNotification'],
|
|
34
34
|
'discordNotification': !runtime.exists(json, 'discordNotification') ? undefined : json['discordNotification'],
|
|
35
35
|
'newsletterNotification': !runtime.exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
|
|
36
|
+
'email': !runtime.exists(json, 'email') ? undefined : json['email'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
function InternalUserFieldsToJSON(value) {
|
|
@@ -63,6 +64,7 @@ function InternalUserFieldsToJSON(value) {
|
|
|
63
64
|
'emailNotification': value.emailNotification,
|
|
64
65
|
'discordNotification': value.discordNotification,
|
|
65
66
|
'newsletterNotification': value.newsletterNotification,
|
|
67
|
+
'email': value.email,
|
|
66
68
|
};
|
|
67
69
|
}
|
|
68
70
|
|
|
@@ -135,6 +135,12 @@ export interface InternalUserFields {
|
|
|
135
135
|
* @memberof InternalUserFields
|
|
136
136
|
*/
|
|
137
137
|
newsletterNotification?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof InternalUserFields
|
|
142
|
+
*/
|
|
143
|
+
email?: string;
|
|
138
144
|
}
|
|
139
145
|
export declare function InternalUserFieldsFromJSON(json: any): InternalUserFields;
|
|
140
146
|
export declare function InternalUserFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternalUserFields;
|
|
@@ -29,6 +29,7 @@ function InternalUserFieldsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'emailNotification': !exists(json, 'emailNotification') ? undefined : json['emailNotification'],
|
|
30
30
|
'discordNotification': !exists(json, 'discordNotification') ? undefined : json['discordNotification'],
|
|
31
31
|
'newsletterNotification': !exists(json, 'newsletterNotification') ? undefined : json['newsletterNotification'],
|
|
32
|
+
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
function InternalUserFieldsToJSON(value) {
|
|
@@ -59,6 +60,7 @@ function InternalUserFieldsToJSON(value) {
|
|
|
59
60
|
'emailNotification': value.emailNotification,
|
|
60
61
|
'discordNotification': value.discordNotification,
|
|
61
62
|
'newsletterNotification': value.newsletterNotification,
|
|
63
|
+
'email': value.email,
|
|
62
64
|
};
|
|
63
65
|
}
|
|
64
66
|
|