@dynamic-labs/sdk-api 0.48.0 → 0.50.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
package/src/index.cjs CHANGED
@@ -156,6 +156,7 @@ var BusinessAccountGovernanceResponse = require('./models/BusinessAccountGoverna
156
156
  var BusinessAccountGovernedAction = require('./models/BusinessAccountGovernedAction.cjs');
157
157
  var BusinessAccountList = require('./models/BusinessAccountList.cjs');
158
158
  var BusinessAccountMember = require('./models/BusinessAccountMember.cjs');
159
+ var BusinessAccountMemberCustomRole = require('./models/BusinessAccountMemberCustomRole.cjs');
159
160
  var BusinessAccountMemberRole = require('./models/BusinessAccountMemberRole.cjs');
160
161
  var BusinessAccountMutationVersion = require('./models/BusinessAccountMutationVersion.cjs');
161
162
  var BusinessAccountProperties = require('./models/BusinessAccountProperties.cjs');
@@ -1499,6 +1500,9 @@ exports.BusinessAccountListToJSON = BusinessAccountList.BusinessAccountListToJSO
1499
1500
  exports.BusinessAccountMemberFromJSON = BusinessAccountMember.BusinessAccountMemberFromJSON;
1500
1501
  exports.BusinessAccountMemberFromJSONTyped = BusinessAccountMember.BusinessAccountMemberFromJSONTyped;
1501
1502
  exports.BusinessAccountMemberToJSON = BusinessAccountMember.BusinessAccountMemberToJSON;
1503
+ exports.BusinessAccountMemberCustomRoleFromJSON = BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleFromJSON;
1504
+ exports.BusinessAccountMemberCustomRoleFromJSONTyped = BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleFromJSONTyped;
1505
+ exports.BusinessAccountMemberCustomRoleToJSON = BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleToJSON;
1502
1506
  Object.defineProperty(exports, 'BusinessAccountMemberRole', {
1503
1507
  enumerable: true,
1504
1508
  get: function () { return BusinessAccountMemberRole.BusinessAccountMemberRole; }
package/src/index.js CHANGED
@@ -152,6 +152,7 @@ export { BusinessAccountGovernanceResponseFromJSON, BusinessAccountGovernanceRes
152
152
  export { BusinessAccountGovernedAction, BusinessAccountGovernedActionFromJSON, BusinessAccountGovernedActionFromJSONTyped, BusinessAccountGovernedActionToJSON } from './models/BusinessAccountGovernedAction.js';
153
153
  export { BusinessAccountListFromJSON, BusinessAccountListFromJSONTyped, BusinessAccountListToJSON } from './models/BusinessAccountList.js';
154
154
  export { BusinessAccountMemberFromJSON, BusinessAccountMemberFromJSONTyped, BusinessAccountMemberToJSON } from './models/BusinessAccountMember.js';
155
+ export { BusinessAccountMemberCustomRoleFromJSON, BusinessAccountMemberCustomRoleFromJSONTyped, BusinessAccountMemberCustomRoleToJSON } from './models/BusinessAccountMemberCustomRole.js';
155
156
  export { BusinessAccountMemberRole, BusinessAccountMemberRoleFromJSON, BusinessAccountMemberRoleFromJSONTyped, BusinessAccountMemberRoleToJSON } from './models/BusinessAccountMemberRole.js';
156
157
  export { BusinessAccountMutationVersionFromJSON, BusinessAccountMutationVersionFromJSONTyped, BusinessAccountMutationVersionToJSON } from './models/BusinessAccountMutationVersion.js';
157
158
  export { BusinessAccountPropertiesFromJSON, BusinessAccountPropertiesFromJSONTyped, BusinessAccountPropertiesToJSON } from './models/BusinessAccountProperties.js';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var BusinessAccountMemberCustomRole = require('./BusinessAccountMemberCustomRole.cjs');
6
7
 
7
8
  /* tslint:disable */
8
9
  function BusinessAccountMemberFromJSON(json) {
@@ -18,6 +19,7 @@ function BusinessAccountMemberFromJSONTyped(json, ignoreDiscriminator) {
18
19
  'userId': json['userId'],
19
20
  'email': !runtime.exists(json, 'email') ? undefined : json['email'],
20
21
  'role': json['role'],
22
+ 'customRole': !runtime.exists(json, 'customRole') ? undefined : BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleFromJSON(json['customRole']),
21
23
  'addedByUserId': !runtime.exists(json, 'addedByUserId') ? undefined : json['addedByUserId'],
22
24
  'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
23
25
  };
@@ -35,6 +37,7 @@ function BusinessAccountMemberToJSON(value) {
35
37
  'userId': value.userId,
36
38
  'email': value.email,
37
39
  'role': value.role,
40
+ 'customRole': BusinessAccountMemberCustomRole.BusinessAccountMemberCustomRoleToJSON(value.customRole),
38
41
  'addedByUserId': value.addedByUserId,
39
42
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
40
43
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { BusinessAccountMemberCustomRole } from './BusinessAccountMemberCustomRole';
12
13
  /**
13
14
  * Admin-reach membership in a business account
14
15
  * @export
@@ -45,6 +46,12 @@ export interface BusinessAccountMember {
45
46
  * @memberof BusinessAccountMember
46
47
  */
47
48
  role: string;
49
+ /**
50
+ *
51
+ * @type {BusinessAccountMemberCustomRole}
52
+ * @memberof BusinessAccountMember
53
+ */
54
+ customRole?: BusinessAccountMemberCustomRole | null;
48
55
  /**
49
56
  *
50
57
  * @type {string}
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { BusinessAccountMemberCustomRoleFromJSON, BusinessAccountMemberCustomRoleToJSON } from './BusinessAccountMemberCustomRole.js';
2
3
 
3
4
  /* tslint:disable */
4
5
  function BusinessAccountMemberFromJSON(json) {
@@ -14,6 +15,7 @@ function BusinessAccountMemberFromJSONTyped(json, ignoreDiscriminator) {
14
15
  'userId': json['userId'],
15
16
  'email': !exists(json, 'email') ? undefined : json['email'],
16
17
  'role': json['role'],
18
+ 'customRole': !exists(json, 'customRole') ? undefined : BusinessAccountMemberCustomRoleFromJSON(json['customRole']),
17
19
  'addedByUserId': !exists(json, 'addedByUserId') ? undefined : json['addedByUserId'],
18
20
  'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
19
21
  };
@@ -31,6 +33,7 @@ function BusinessAccountMemberToJSON(value) {
31
33
  'userId': value.userId,
32
34
  'email': value.email,
33
35
  'role': value.role,
36
+ 'customRole': BusinessAccountMemberCustomRoleToJSON(value.customRole),
34
37
  'addedByUserId': value.addedByUserId,
35
38
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
36
39
  };
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ function BusinessAccountMemberCustomRoleFromJSON(json) {
19
+ return BusinessAccountMemberCustomRoleFromJSONTyped(json);
20
+ }
21
+ function BusinessAccountMemberCustomRoleFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'name': json['name'],
27
+ 'inherits': json['inherits'],
28
+ };
29
+ }
30
+ function BusinessAccountMemberCustomRoleToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'name': value.name,
39
+ 'inherits': value.inherits,
40
+ };
41
+ }
42
+
43
+ exports.BusinessAccountMemberCustomRoleFromJSON = BusinessAccountMemberCustomRoleFromJSON;
44
+ exports.BusinessAccountMemberCustomRoleFromJSONTyped = BusinessAccountMemberCustomRoleFromJSONTyped;
45
+ exports.BusinessAccountMemberCustomRoleToJSON = BusinessAccountMemberCustomRoleToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The member's actual customer-defined role, when role names one; null for a built-in role
14
+ * @export
15
+ * @interface BusinessAccountMemberCustomRole
16
+ */
17
+ export interface BusinessAccountMemberCustomRole {
18
+ /**
19
+ * The role a member actually holds: a built-in (`owner`, `admin`, `viewer`) or a customer-defined role the account has defined. Wider than AssignableBusinessAccountRoleName because a held role can be `owner`, which cannot be assigned directly.
20
+ * @type {string}
21
+ * @memberof BusinessAccountMemberCustomRole
22
+ */
23
+ name: string;
24
+ /**
25
+ * The role a member actually holds: a built-in (`owner`, `admin`, `viewer`) or a customer-defined role the account has defined. Wider than AssignableBusinessAccountRoleName because a held role can be `owner`, which cannot be assigned directly.
26
+ * @type {string}
27
+ * @memberof BusinessAccountMemberCustomRole
28
+ */
29
+ inherits: string;
30
+ }
31
+ export declare function BusinessAccountMemberCustomRoleFromJSON(json: any): BusinessAccountMemberCustomRole;
32
+ export declare function BusinessAccountMemberCustomRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountMemberCustomRole;
33
+ export declare function BusinessAccountMemberCustomRoleToJSON(value?: BusinessAccountMemberCustomRole | null): any;
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function BusinessAccountMemberCustomRoleFromJSON(json) {
15
+ return BusinessAccountMemberCustomRoleFromJSONTyped(json);
16
+ }
17
+ function BusinessAccountMemberCustomRoleFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'name': json['name'],
23
+ 'inherits': json['inherits'],
24
+ };
25
+ }
26
+ function BusinessAccountMemberCustomRoleToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'name': value.name,
35
+ 'inherits': value.inherits,
36
+ };
37
+ }
38
+
39
+ export { BusinessAccountMemberCustomRoleFromJSON, BusinessAccountMemberCustomRoleFromJSONTyped, BusinessAccountMemberCustomRoleToJSON };
@@ -99,6 +99,7 @@ export * from './BusinessAccountGovernanceResponse';
99
99
  export * from './BusinessAccountGovernedAction';
100
100
  export * from './BusinessAccountList';
101
101
  export * from './BusinessAccountMember';
102
+ export * from './BusinessAccountMemberCustomRole';
102
103
  export * from './BusinessAccountMemberRole';
103
104
  export * from './BusinessAccountMutationVersion';
104
105
  export * from './BusinessAccountProperties';