@dynamic-labs/sdk-api 0.0.389 → 0.0.390

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.0.389",
3
+ "version": "0.0.390",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
package/src/index.cjs CHANGED
@@ -64,6 +64,7 @@ var CurrencyType = require('./models/CurrencyType.cjs');
64
64
  var CustomField = require('./models/CustomField.cjs');
65
65
  var CustomFieldRequest = require('./models/CustomFieldRequest.cjs');
66
66
  var CustomFieldType = require('./models/CustomFieldType.cjs');
67
+ var CustomFieldValidValue = require('./models/CustomFieldValidValue.cjs');
67
68
  var CustomFieldValidationRules = require('./models/CustomFieldValidationRules.cjs');
68
69
  var Duration = require('./models/Duration.cjs');
69
70
  var DynamicJwt = require('./models/DynamicJwt.cjs');
@@ -460,6 +461,9 @@ Object.defineProperty(exports, 'CustomFieldType', {
460
461
  exports.CustomFieldTypeFromJSON = CustomFieldType.CustomFieldTypeFromJSON;
461
462
  exports.CustomFieldTypeFromJSONTyped = CustomFieldType.CustomFieldTypeFromJSONTyped;
462
463
  exports.CustomFieldTypeToJSON = CustomFieldType.CustomFieldTypeToJSON;
464
+ exports.CustomFieldValidValueFromJSON = CustomFieldValidValue.CustomFieldValidValueFromJSON;
465
+ exports.CustomFieldValidValueFromJSONTyped = CustomFieldValidValue.CustomFieldValidValueFromJSONTyped;
466
+ exports.CustomFieldValidValueToJSON = CustomFieldValidValue.CustomFieldValidValueToJSON;
463
467
  exports.CustomFieldValidationRulesFromJSON = CustomFieldValidationRules.CustomFieldValidationRulesFromJSON;
464
468
  exports.CustomFieldValidationRulesFromJSONTyped = CustomFieldValidationRules.CustomFieldValidationRulesFromJSONTyped;
465
469
  exports.CustomFieldValidationRulesToJSON = CustomFieldValidationRules.CustomFieldValidationRulesToJSON;
package/src/index.js CHANGED
@@ -60,6 +60,7 @@ export { CurrencyType, CurrencyTypeFromJSON, CurrencyTypeFromJSONTyped, Currency
60
60
  export { CustomFieldFromJSON, CustomFieldFromJSONTyped, CustomFieldToJSON } from './models/CustomField.js';
61
61
  export { CustomFieldRequestFromJSON, CustomFieldRequestFromJSONTyped, CustomFieldRequestToJSON } from './models/CustomFieldRequest.js';
62
62
  export { CustomFieldType, CustomFieldTypeFromJSON, CustomFieldTypeFromJSONTyped, CustomFieldTypeToJSON } from './models/CustomFieldType.js';
63
+ export { CustomFieldValidValueFromJSON, CustomFieldValidValueFromJSONTyped, CustomFieldValidValueToJSON } from './models/CustomFieldValidValue.js';
63
64
  export { CustomFieldValidationRulesFromJSON, CustomFieldValidationRulesFromJSONTyped, CustomFieldValidationRulesToJSON } from './models/CustomFieldValidationRules.js';
64
65
  export { DurationFromJSON, DurationFromJSONTyped, DurationToJSON } from './models/Duration.js';
65
66
  export { DynamicJwtFromJSON, DynamicJwtFromJSONTyped, DynamicJwtToJSON } from './models/DynamicJwt.js';
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function CustomFieldValidValueFromJSON(json) {
9
+ return CustomFieldValidValueFromJSONTyped(json);
10
+ }
11
+ function CustomFieldValidValueFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'label': json['label'],
17
+ 'key': !runtime.exists(json, 'key') ? undefined : json['key'],
18
+ };
19
+ }
20
+ function CustomFieldValidValueToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'label': value.label,
29
+ 'key': value.key,
30
+ };
31
+ }
32
+
33
+ exports.CustomFieldValidValueFromJSON = CustomFieldValidValueFromJSON;
34
+ exports.CustomFieldValidValueFromJSONTyped = CustomFieldValidValueFromJSONTyped;
35
+ exports.CustomFieldValidValueToJSON = CustomFieldValidValueToJSON;
@@ -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
+ *
14
+ * @export
15
+ * @interface CustomFieldValidValue
16
+ */
17
+ export interface CustomFieldValidValue {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CustomFieldValidValue
22
+ */
23
+ label: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CustomFieldValidValue
28
+ */
29
+ key?: string;
30
+ }
31
+ export declare function CustomFieldValidValueFromJSON(json: any): CustomFieldValidValue;
32
+ export declare function CustomFieldValidValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomFieldValidValue;
33
+ export declare function CustomFieldValidValueToJSON(value?: CustomFieldValidValue | null): any;
@@ -0,0 +1,29 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function CustomFieldValidValueFromJSON(json) {
5
+ return CustomFieldValidValueFromJSONTyped(json);
6
+ }
7
+ function CustomFieldValidValueFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'label': json['label'],
13
+ 'key': !exists(json, 'key') ? undefined : json['key'],
14
+ };
15
+ }
16
+ function CustomFieldValidValueToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'label': value.label,
25
+ 'key': value.key,
26
+ };
27
+ }
28
+
29
+ export { CustomFieldValidValueFromJSON, CustomFieldValidValueFromJSONTyped, CustomFieldValidValueToJSON };
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var CustomFieldValidValue = require('./CustomFieldValidValue.cjs');
6
7
 
7
8
  /* tslint:disable */
8
9
  function CustomFieldValidationRulesFromJSON(json) {
@@ -15,7 +16,7 @@ function CustomFieldValidationRulesFromJSONTyped(json, ignoreDiscriminator) {
15
16
  return {
16
17
  'unique': !runtime.exists(json, 'unique') ? undefined : json['unique'],
17
18
  'regex': !runtime.exists(json, 'regex') ? undefined : json['regex'],
18
- 'validOptions': !runtime.exists(json, 'validOptions') ? undefined : json['validOptions'],
19
+ 'validOptions': !runtime.exists(json, 'validOptions') ? undefined : (json['validOptions'].map(CustomFieldValidValue.CustomFieldValidValueFromJSON)),
19
20
  };
20
21
  }
21
22
  function CustomFieldValidationRulesToJSON(value) {
@@ -28,7 +29,7 @@ function CustomFieldValidationRulesToJSON(value) {
28
29
  return {
29
30
  'unique': value.unique,
30
31
  'regex': value.regex,
31
- 'validOptions': value.validOptions,
32
+ 'validOptions': value.validOptions === undefined ? undefined : (value.validOptions.map(CustomFieldValidValue.CustomFieldValidValueToJSON)),
32
33
  };
33
34
  }
34
35
 
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CustomFieldValidValue } from './CustomFieldValidValue';
12
13
  /**
13
14
  * Optional validation rules for the custom field
14
15
  * @export
@@ -29,10 +30,10 @@ export interface CustomFieldValidationRules {
29
30
  regex?: string;
30
31
  /**
31
32
  * must go with one of the valid selection choices
32
- * @type {Array<string>}
33
+ * @type {Array<CustomFieldValidValue>}
33
34
  * @memberof CustomFieldValidationRules
34
35
  */
35
- validOptions?: Array<string>;
36
+ validOptions?: Array<CustomFieldValidValue>;
36
37
  }
37
38
  export declare function CustomFieldValidationRulesFromJSON(json: any): CustomFieldValidationRules;
38
39
  export declare function CustomFieldValidationRulesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomFieldValidationRules;
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { CustomFieldValidValueFromJSON, CustomFieldValidValueToJSON } from './CustomFieldValidValue.js';
2
3
 
3
4
  /* tslint:disable */
4
5
  function CustomFieldValidationRulesFromJSON(json) {
@@ -11,7 +12,7 @@ function CustomFieldValidationRulesFromJSONTyped(json, ignoreDiscriminator) {
11
12
  return {
12
13
  'unique': !exists(json, 'unique') ? undefined : json['unique'],
13
14
  'regex': !exists(json, 'regex') ? undefined : json['regex'],
14
- 'validOptions': !exists(json, 'validOptions') ? undefined : json['validOptions'],
15
+ 'validOptions': !exists(json, 'validOptions') ? undefined : (json['validOptions'].map(CustomFieldValidValueFromJSON)),
15
16
  };
16
17
  }
17
18
  function CustomFieldValidationRulesToJSON(value) {
@@ -24,7 +25,7 @@ function CustomFieldValidationRulesToJSON(value) {
24
25
  return {
25
26
  'unique': value.unique,
26
27
  'regex': value.regex,
27
- 'validOptions': value.validOptions,
28
+ 'validOptions': value.validOptions === undefined ? undefined : (value.validOptions.map(CustomFieldValidValueToJSON)),
28
29
  };
29
30
  }
30
31
 
@@ -79,8 +79,10 @@ exports.UnprocessableEntityErrorCode = void 0;
79
79
  UnprocessableEntityErrorCode["MissingAaProjectId"] = "missing_aa_project_id";
80
80
  UnprocessableEntityErrorCode["LinkedEmbeddedWallet"] = "linked_embedded_wallet";
81
81
  UnprocessableEntityErrorCode["InvalidMpcEnvironment"] = "invalid_mpc_environment";
82
- UnprocessableEntityErrorCode["MissingPhoneNumberOrEmail"] = "missing_phone_number_or_email";
83
82
  UnprocessableEntityErrorCode["DuplicateExists"] = "duplicate_exists";
83
+ UnprocessableEntityErrorCode["InvalidRegex"] = "invalid_regex";
84
+ UnprocessableEntityErrorCode["RepeatedOptions"] = "repeated_options";
85
+ UnprocessableEntityErrorCode["MissingPhoneNumberOrEmail"] = "missing_phone_number_or_email";
84
86
  })(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
85
87
  function UnprocessableEntityErrorCodeFromJSON(json) {
86
88
  return UnprocessableEntityErrorCodeFromJSONTyped(json);
@@ -72,8 +72,10 @@ export declare enum UnprocessableEntityErrorCode {
72
72
  MissingAaProjectId = "missing_aa_project_id",
73
73
  LinkedEmbeddedWallet = "linked_embedded_wallet",
74
74
  InvalidMpcEnvironment = "invalid_mpc_environment",
75
- MissingPhoneNumberOrEmail = "missing_phone_number_or_email",
76
- DuplicateExists = "duplicate_exists"
75
+ DuplicateExists = "duplicate_exists",
76
+ InvalidRegex = "invalid_regex",
77
+ RepeatedOptions = "repeated_options",
78
+ MissingPhoneNumberOrEmail = "missing_phone_number_or_email"
77
79
  }
78
80
  export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
79
81
  export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
@@ -75,8 +75,10 @@ var UnprocessableEntityErrorCode;
75
75
  UnprocessableEntityErrorCode["MissingAaProjectId"] = "missing_aa_project_id";
76
76
  UnprocessableEntityErrorCode["LinkedEmbeddedWallet"] = "linked_embedded_wallet";
77
77
  UnprocessableEntityErrorCode["InvalidMpcEnvironment"] = "invalid_mpc_environment";
78
- UnprocessableEntityErrorCode["MissingPhoneNumberOrEmail"] = "missing_phone_number_or_email";
79
78
  UnprocessableEntityErrorCode["DuplicateExists"] = "duplicate_exists";
79
+ UnprocessableEntityErrorCode["InvalidRegex"] = "invalid_regex";
80
+ UnprocessableEntityErrorCode["RepeatedOptions"] = "repeated_options";
81
+ UnprocessableEntityErrorCode["MissingPhoneNumberOrEmail"] = "missing_phone_number_or_email";
80
82
  })(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
81
83
  function UnprocessableEntityErrorCodeFromJSON(json) {
82
84
  return UnprocessableEntityErrorCodeFromJSONTyped(json);
@@ -36,6 +36,7 @@ export * from './CurrencyType';
36
36
  export * from './CustomField';
37
37
  export * from './CustomFieldRequest';
38
38
  export * from './CustomFieldType';
39
+ export * from './CustomFieldValidValue';
39
40
  export * from './CustomFieldValidationRules';
40
41
  export * from './Duration';
41
42
  export * from './DynamicJwt';