@managespace/sdk 0.0.40 → 0.0.42

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.
Files changed (60) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +17 -17
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +16 -10
  4. package/dist/generated/apis/default-api.d.ts +49 -18
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +161 -56
  7. package/dist/generated/models/configuration-setting-response.d.ts +84 -0
  8. package/dist/generated/models/configuration-setting-response.d.ts.map +1 -0
  9. package/dist/generated/models/configuration-setting-response.js +82 -0
  10. package/dist/generated/models/configuration-setting-type.d.ts +28 -0
  11. package/dist/generated/models/configuration-setting-type.d.ts.map +1 -0
  12. package/dist/generated/models/configuration-setting-type.js +53 -0
  13. package/dist/generated/models/create-configuration-setting.d.ts +52 -0
  14. package/dist/generated/models/create-configuration-setting.d.ts.map +1 -0
  15. package/dist/generated/models/create-configuration-setting.js +64 -0
  16. package/dist/generated/models/create-payment-run.d.ts +1 -1
  17. package/dist/generated/models/create-payment-run.d.ts.map +1 -1
  18. package/dist/generated/models/create-payment-run.js +1 -3
  19. package/dist/generated/models/create-payment.d.ts +155 -0
  20. package/dist/generated/models/create-payment.d.ts.map +1 -0
  21. package/dist/generated/models/create-payment.js +123 -0
  22. package/dist/generated/models/create-revenue-rule.d.ts +69 -0
  23. package/dist/generated/models/create-revenue-rule.d.ts.map +1 -0
  24. package/dist/generated/models/create-revenue-rule.js +75 -0
  25. package/dist/generated/models/create-subscription.d.ts +2 -15
  26. package/dist/generated/models/create-subscription.d.ts.map +1 -1
  27. package/dist/generated/models/create-subscription.js +3 -12
  28. package/dist/generated/models/get-configuration-settings200-response.d.ts +41 -0
  29. package/dist/generated/models/get-configuration-settings200-response.d.ts.map +1 -0
  30. package/dist/generated/models/get-configuration-settings200-response.js +55 -0
  31. package/dist/generated/models/index.d.ts +8 -4
  32. package/dist/generated/models/index.d.ts.map +1 -1
  33. package/dist/generated/models/index.js +8 -4
  34. package/dist/generated/models/org-response.d.ts +4 -4
  35. package/dist/generated/models/org-response.d.ts.map +1 -1
  36. package/dist/generated/models/org-response.js +5 -5
  37. package/dist/generated/models/payment-response.d.ts +2 -2
  38. package/dist/generated/models/site-response.d.ts +4 -4
  39. package/dist/generated/models/site-response.d.ts.map +1 -1
  40. package/dist/generated/models/site-response.js +5 -5
  41. package/dist/generated/models/update-configuration-setting.d.ts +52 -0
  42. package/dist/generated/models/update-configuration-setting.d.ts.map +1 -0
  43. package/dist/generated/models/update-configuration-setting.js +56 -0
  44. package/package.json +1 -1
  45. package/src/extensibility/functions/project/billing.ts +21 -14
  46. package/src/generated/.openapi-generator/FILES +8 -4
  47. package/src/generated/apis/default-api.ts +269 -93
  48. package/src/generated/models/configuration-setting-response.ts +160 -0
  49. package/src/generated/models/configuration-setting-type.ts +55 -0
  50. package/src/generated/models/create-configuration-setting.ts +103 -0
  51. package/src/generated/models/create-payment-run.ts +2 -3
  52. package/src/generated/models/create-payment.ts +256 -0
  53. package/src/generated/models/create-revenue-rule.ts +120 -0
  54. package/src/generated/models/create-subscription.ts +5 -31
  55. package/src/generated/models/get-configuration-settings200-response.ts +89 -0
  56. package/src/generated/models/index.ts +8 -4
  57. package/src/generated/models/org-response.ts +13 -13
  58. package/src/generated/models/payment-response.ts +2 -2
  59. package/src/generated/models/site-response.ts +13 -13
  60. package/src/generated/models/update-configuration-setting.ts +99 -0
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace V2 Auth API
5
+ * ManageSpace Auth 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
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateRevenueRule
20
+ */
21
+ export interface CreateRevenueRule {
22
+ /**
23
+ * Name of Revenue Rule
24
+ * @type {string}
25
+ * @memberof CreateRevenueRule
26
+ */
27
+ name: string;
28
+ /**
29
+ * Revenue Recognition Method
30
+ * @type {string}
31
+ * @memberof CreateRevenueRule
32
+ */
33
+ recoginitionMethod: string;
34
+ /**
35
+ * `Time period of recognition for rule
36
+ * @type {string}
37
+ * @memberof CreateRevenueRule
38
+ */
39
+ recognitionSchedulePeriod: string;
40
+ /**
41
+ * Day of the month we will recognize the revenue
42
+ * @type {string}
43
+ * @memberof CreateRevenueRule
44
+ */
45
+ postingDay: string;
46
+ /**
47
+ * Whether we will be recognizing it Automatically or Manually
48
+ * @type {string}
49
+ * @memberof CreateRevenueRule
50
+ */
51
+ postingMethod: string;
52
+ /**
53
+ * Revenue rule status
54
+ * @type {string}
55
+ * @memberof CreateRevenueRule
56
+ */
57
+ status: string;
58
+ /**
59
+ * Whether revenue rule will align with periods in a controct or fixed
60
+ * @type {string}
61
+ * @memberof CreateRevenueRule
62
+ */
63
+ recognitionTerm: string;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the CreateRevenueRule interface.
68
+ */
69
+ export function instanceOfCreateRevenueRule(value: object): value is CreateRevenueRule {
70
+ if (!('name' in value) || value['name'] === undefined) return false;
71
+ if (!('recoginitionMethod' in value) || value['recoginitionMethod'] === undefined) return false;
72
+ if (!('recognitionSchedulePeriod' in value) || value['recognitionSchedulePeriod'] === undefined) return false;
73
+ if (!('postingDay' in value) || value['postingDay'] === undefined) return false;
74
+ if (!('postingMethod' in value) || value['postingMethod'] === undefined) return false;
75
+ if (!('status' in value) || value['status'] === undefined) return false;
76
+ if (!('recognitionTerm' in value) || value['recognitionTerm'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function CreateRevenueRuleFromJSON(json: any): CreateRevenueRule {
81
+ return CreateRevenueRuleFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function CreateRevenueRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRevenueRule {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'name': json['name'],
91
+ 'recoginitionMethod': json['recoginitionMethod'],
92
+ 'recognitionSchedulePeriod': json['recognitionSchedulePeriod'],
93
+ 'postingDay': json['postingDay'],
94
+ 'postingMethod': json['postingMethod'],
95
+ 'status': json['status'],
96
+ 'recognitionTerm': json['recognitionTerm'],
97
+ };
98
+ }
99
+
100
+ export function CreateRevenueRuleToJSON(json: any): CreateRevenueRule {
101
+ return CreateRevenueRuleToJSONTyped(json, false);
102
+ }
103
+
104
+ export function CreateRevenueRuleToJSONTyped(value?: CreateRevenueRule | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'name': value['name'],
112
+ 'recoginitionMethod': value['recoginitionMethod'],
113
+ 'recognitionSchedulePeriod': value['recognitionSchedulePeriod'],
114
+ 'postingDay': value['postingDay'],
115
+ 'postingMethod': value['postingMethod'],
116
+ 'status': value['status'],
117
+ 'recognitionTerm': value['recognitionTerm'],
118
+ };
119
+ }
120
+
@@ -13,26 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { CreateSubscriptionPlan } from './create-subscription-plan';
17
- import {
18
- CreateSubscriptionPlanFromJSON,
19
- CreateSubscriptionPlanFromJSONTyped,
20
- CreateSubscriptionPlanToJSON,
21
- CreateSubscriptionPlanToJSONTyped,
22
- } from './create-subscription-plan';
23
-
24
16
  /**
25
17
  *
26
18
  * @export
27
19
  * @interface CreateSubscription
28
20
  */
29
21
  export interface CreateSubscription {
30
- /**
31
- * Asset id associated with subscription
32
- * @type {string}
33
- * @memberof CreateSubscription
34
- */
35
- assetId: string;
36
22
  /**
37
23
  * Status of subscription contract
38
24
  * @type {string}
@@ -57,31 +43,23 @@ export interface CreateSubscription {
57
43
  * @memberof CreateSubscription
58
44
  */
59
45
  billingStartDate: string;
60
- /**
61
- * separate invoice generated
62
- * @type {boolean}
63
- * @memberof CreateSubscription
64
- */
65
- separateInvoice: boolean;
66
46
  /**
67
47
  * Subscription plan details
68
- * @type {Array<CreateSubscriptionPlan>}
48
+ * @type {Array<string>}
69
49
  * @memberof CreateSubscription
70
50
  */
71
- plans: Array<CreateSubscriptionPlan>;
51
+ planIds: Array<string>;
72
52
  }
73
53
 
74
54
  /**
75
55
  * Check if a given object implements the CreateSubscription interface.
76
56
  */
77
57
  export function instanceOfCreateSubscription(value: object): value is CreateSubscription {
78
- if (!('assetId' in value) || value['assetId'] === undefined) return false;
79
58
  if (!('status' in value) || value['status'] === undefined) return false;
80
59
  if (!('serviceStartDate' in value) || value['serviceStartDate'] === undefined) return false;
81
60
  if (!('contractEffectiveDate' in value) || value['contractEffectiveDate'] === undefined) return false;
82
61
  if (!('billingStartDate' in value) || value['billingStartDate'] === undefined) return false;
83
- if (!('separateInvoice' in value) || value['separateInvoice'] === undefined) return false;
84
- if (!('plans' in value) || value['plans'] === undefined) return false;
62
+ if (!('planIds' in value) || value['planIds'] === undefined) return false;
85
63
  return true;
86
64
  }
87
65
 
@@ -95,13 +73,11 @@ export function CreateSubscriptionFromJSONTyped(json: any, ignoreDiscriminator:
95
73
  }
96
74
  return {
97
75
 
98
- 'assetId': json['assetId'],
99
76
  'status': json['status'],
100
77
  'serviceStartDate': json['serviceStartDate'],
101
78
  'contractEffectiveDate': json['contractEffectiveDate'],
102
79
  'billingStartDate': json['billingStartDate'],
103
- 'separateInvoice': json['separateInvoice'],
104
- 'plans': ((json['plans'] as Array<any>).map(CreateSubscriptionPlanFromJSON)),
80
+ 'planIds': json['planIds'],
105
81
  };
106
82
  }
107
83
 
@@ -116,13 +92,11 @@ export function CreateSubscriptionToJSONTyped(value?: CreateSubscription | null,
116
92
 
117
93
  return {
118
94
 
119
- 'assetId': value['assetId'],
120
95
  'status': value['status'],
121
96
  'serviceStartDate': value['serviceStartDate'],
122
97
  'contractEffectiveDate': value['contractEffectiveDate'],
123
98
  'billingStartDate': value['billingStartDate'],
124
- 'separateInvoice': value['separateInvoice'],
125
- 'plans': ((value['plans'] as Array<any>).map(CreateSubscriptionPlanToJSON)),
99
+ 'planIds': value['planIds'],
126
100
  };
127
101
  }
128
102
 
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace V2 Auth API
5
+ * ManageSpace Auth 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
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ConfigurationSettingResponse } from './configuration-setting-response';
17
+ import {
18
+ ConfigurationSettingResponseFromJSON,
19
+ ConfigurationSettingResponseFromJSONTyped,
20
+ ConfigurationSettingResponseToJSON,
21
+ ConfigurationSettingResponseToJSONTyped,
22
+ } from './configuration-setting-response';
23
+ import type { PageMeta } from './page-meta';
24
+ import {
25
+ PageMetaFromJSON,
26
+ PageMetaFromJSONTyped,
27
+ PageMetaToJSON,
28
+ PageMetaToJSONTyped,
29
+ } from './page-meta';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface GetConfigurationSettings200Response
35
+ */
36
+ export interface GetConfigurationSettings200Response {
37
+ /**
38
+ * The pagination metadata
39
+ * @type {PageMeta}
40
+ * @memberof GetConfigurationSettings200Response
41
+ */
42
+ pageMeta: PageMeta;
43
+ /**
44
+ *
45
+ * @type {Array<ConfigurationSettingResponse>}
46
+ * @memberof GetConfigurationSettings200Response
47
+ */
48
+ results?: Array<ConfigurationSettingResponse>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the GetConfigurationSettings200Response interface.
53
+ */
54
+ export function instanceOfGetConfigurationSettings200Response(value: object): value is GetConfigurationSettings200Response {
55
+ if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function GetConfigurationSettings200ResponseFromJSON(json: any): GetConfigurationSettings200Response {
60
+ return GetConfigurationSettings200ResponseFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function GetConfigurationSettings200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConfigurationSettings200Response {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'pageMeta': PageMetaFromJSON(json['pageMeta']),
70
+ 'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(ConfigurationSettingResponseFromJSON)),
71
+ };
72
+ }
73
+
74
+ export function GetConfigurationSettings200ResponseToJSON(json: any): GetConfigurationSettings200Response {
75
+ return GetConfigurationSettings200ResponseToJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetConfigurationSettings200ResponseToJSONTyped(value?: GetConfigurationSettings200Response | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'pageMeta': PageMetaToJSON(value['pageMeta']),
86
+ 'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(ConfigurationSettingResponseToJSON)),
87
+ };
88
+ }
89
+
@@ -17,7 +17,8 @@ export * from './checklist-recurrence-frequency';
17
17
  export * from './checklist-response';
18
18
  export * from './communication-response';
19
19
  export * from './communication-type';
20
- export * from './configuration-response';
20
+ export * from './configuration-setting-response';
21
+ export * from './configuration-setting-type';
21
22
  export * from './contact-response';
22
23
  export * from './create-address';
23
24
  export * from './create-asset-asset-category-relation-input';
@@ -29,23 +30,24 @@ export * from './create-billing-run';
29
30
  export * from './create-calendar';
30
31
  export * from './create-checklist';
31
32
  export * from './create-communication';
33
+ export * from './create-configuration-setting';
32
34
  export * from './create-document';
33
35
  export * from './create-instances';
34
36
  export * from './create-map-feature';
35
37
  export * from './create-note';
36
38
  export * from './create-notification';
37
39
  export * from './create-org';
38
- export * from './create-payment-billing';
40
+ export * from './create-payment';
39
41
  export * from './create-payment-invoice';
40
42
  export * from './create-payment-refund';
41
43
  export * from './create-payment-run';
42
44
  export * from './create-plan-charge';
43
45
  export * from './create-product';
44
46
  export * from './create-product-custom';
47
+ export * from './create-revenue-rule';
45
48
  export * from './create-site-custom';
46
49
  export * from './create-smart-bar-prompt';
47
50
  export * from './create-subscription';
48
- export * from './create-subscription-plan';
49
51
  export * from './create-task';
50
52
  export * from './create-task-template';
51
53
  export * from './create-template';
@@ -77,10 +79,11 @@ export * from './get-calendars200-response';
77
79
  export * from './get-charges200-response';
78
80
  export * from './get-chart-of-accounts200-response';
79
81
  export * from './get-communications200-response';
82
+ export * from './get-configuration-settings200-response';
80
83
  export * from './get-contacts200-response';
81
84
  export * from './get-customers200-response';
82
85
  export * from './get-intent';
83
- export * from './get-invoice-billing200-response';
86
+ export * from './get-invoices200-response';
84
87
  export * from './get-notes200-response';
85
88
  export * from './get-notifications200-response';
86
89
  export * from './get-payment-runs200-response';
@@ -157,6 +160,7 @@ export * from './update-asset';
157
160
  export * from './update-asset-category';
158
161
  export * from './update-asset-feature';
159
162
  export * from './update-checklist-task-template';
163
+ export * from './update-configuration-setting';
160
164
  export * from './update-extensibility-repo';
161
165
  export * from './update-map-feature';
162
166
  export * from './update-note';
@@ -27,13 +27,13 @@ import {
27
27
  CalendarResponseToJSON,
28
28
  CalendarResponseToJSONTyped,
29
29
  } from './calendar-response';
30
- import type { ConfigurationResponse } from './configuration-response';
30
+ import type { ConfigurationSettingResponse } from './configuration-setting-response';
31
31
  import {
32
- ConfigurationResponseFromJSON,
33
- ConfigurationResponseFromJSONTyped,
34
- ConfigurationResponseToJSON,
35
- ConfigurationResponseToJSONTyped,
36
- } from './configuration-response';
32
+ ConfigurationSettingResponseFromJSON,
33
+ ConfigurationSettingResponseFromJSONTyped,
34
+ ConfigurationSettingResponseToJSON,
35
+ ConfigurationSettingResponseToJSONTyped,
36
+ } from './configuration-setting-response';
37
37
  import type { CommunicationResponse } from './communication-response';
38
38
  import {
39
39
  CommunicationResponseFromJSON,
@@ -328,10 +328,10 @@ export interface OrgResponse {
328
328
  note?: Array<NoteResponse>;
329
329
  /**
330
330
  *
331
- * @type {Array<ConfigurationResponse>}
331
+ * @type {Array<ConfigurationSettingResponse>}
332
332
  * @memberof OrgResponse
333
333
  */
334
- _configuration?: Array<ConfigurationResponse>;
334
+ configurationSettings?: Array<ConfigurationSettingResponse>;
335
335
  /**
336
336
  *
337
337
  * @type {Array<CustomerResponse>}
@@ -367,7 +367,7 @@ export interface OrgResponse {
367
367
  * @type {Array<PlanResponse>}
368
368
  * @memberof OrgResponse
369
369
  */
370
- plan?: Array<PlanResponse>;
370
+ plans?: Array<PlanResponse>;
371
371
  }
372
372
 
373
373
  /**
@@ -416,13 +416,13 @@ export function OrgResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean
416
416
  'checklists': json['checklists'] == null ? undefined : ((json['checklists'] as Array<any>).map(ChecklistResponseFromJSON)),
417
417
  'taskTemplates': json['taskTemplates'] == null ? undefined : ((json['taskTemplates'] as Array<any>).map(TaskTemplateResponseFromJSON)),
418
418
  'note': json['Note'] == null ? undefined : ((json['Note'] as Array<any>).map(NoteResponseFromJSON)),
419
- '_configuration': json['Configuration'] == null ? undefined : ((json['Configuration'] as Array<any>).map(ConfigurationResponseFromJSON)),
419
+ 'configurationSettings': json['configurationSettings'] == null ? undefined : ((json['configurationSettings'] as Array<any>).map(ConfigurationSettingResponseFromJSON)),
420
420
  'customers': json['customers'] == null ? undefined : ((json['customers'] as Array<any>).map(CustomerResponseFromJSON)),
421
421
  'contacts': json['contacts'] == null ? undefined : ((json['contacts'] as Array<any>).map(ContactResponseFromJSON)),
422
422
  'projectVersions': json['projectVersions'] == null ? undefined : ((json['projectVersions'] as Array<any>).map(ProjectVersionResponseFromJSON)),
423
423
  'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
424
424
  'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductResponseFromJSON)),
425
- 'plan': json['Plan'] == null ? undefined : ((json['Plan'] as Array<any>).map(PlanResponseFromJSON)),
425
+ 'plans': json['plans'] == null ? undefined : ((json['plans'] as Array<any>).map(PlanResponseFromJSON)),
426
426
  };
427
427
  }
428
428
 
@@ -460,13 +460,13 @@ export function OrgResponseToJSONTyped(value?: OrgResponse | null, ignoreDiscrim
460
460
  'checklists': value['checklists'] == null ? undefined : ((value['checklists'] as Array<any>).map(ChecklistResponseToJSON)),
461
461
  'taskTemplates': value['taskTemplates'] == null ? undefined : ((value['taskTemplates'] as Array<any>).map(TaskTemplateResponseToJSON)),
462
462
  'Note': value['note'] == null ? undefined : ((value['note'] as Array<any>).map(NoteResponseToJSON)),
463
- 'Configuration': value['_configuration'] == null ? undefined : ((value['_configuration'] as Array<any>).map(ConfigurationResponseToJSON)),
463
+ 'configurationSettings': value['configurationSettings'] == null ? undefined : ((value['configurationSettings'] as Array<any>).map(ConfigurationSettingResponseToJSON)),
464
464
  'customers': value['customers'] == null ? undefined : ((value['customers'] as Array<any>).map(CustomerResponseToJSON)),
465
465
  'contacts': value['contacts'] == null ? undefined : ((value['contacts'] as Array<any>).map(ContactResponseToJSON)),
466
466
  'projectVersions': value['projectVersions'] == null ? undefined : ((value['projectVersions'] as Array<any>).map(ProjectVersionResponseToJSON)),
467
467
  'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
468
468
  'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductResponseToJSON)),
469
- 'Plan': value['plan'] == null ? undefined : ((value['plan'] as Array<any>).map(PlanResponseToJSON)),
469
+ 'plans': value['plans'] == null ? undefined : ((value['plans'] as Array<any>).map(PlanResponseToJSON)),
470
470
  };
471
471
  }
472
472
 
@@ -167,10 +167,10 @@ export interface PaymentResponse {
167
167
  updatedAt: string;
168
168
  /**
169
169
  * Number of times attempts failed
170
- * @type {string}
170
+ * @type {number}
171
171
  * @memberof PaymentResponse
172
172
  */
173
- failedAttempts: string;
173
+ failedAttempts: number;
174
174
  /**
175
175
  * Reason for failed attempt
176
176
  * @type {string}
@@ -20,13 +20,13 @@ import {
20
20
  CalendarResponseToJSON,
21
21
  CalendarResponseToJSONTyped,
22
22
  } from './calendar-response';
23
- import type { ConfigurationResponse } from './configuration-response';
23
+ import type { ConfigurationSettingResponse } from './configuration-setting-response';
24
24
  import {
25
- ConfigurationResponseFromJSON,
26
- ConfigurationResponseFromJSONTyped,
27
- ConfigurationResponseToJSON,
28
- ConfigurationResponseToJSONTyped,
29
- } from './configuration-response';
25
+ ConfigurationSettingResponseFromJSON,
26
+ ConfigurationSettingResponseFromJSONTyped,
27
+ ConfigurationSettingResponseToJSON,
28
+ ConfigurationSettingResponseToJSONTyped,
29
+ } from './configuration-setting-response';
30
30
  import type { CommunicationResponse } from './communication-response';
31
31
  import {
32
32
  CommunicationResponseFromJSON,
@@ -254,10 +254,10 @@ export interface SiteResponse {
254
254
  notes?: Array<NoteResponse>;
255
255
  /**
256
256
  *
257
- * @type {Array<ConfigurationResponse>}
257
+ * @type {Array<ConfigurationSettingResponse>}
258
258
  * @memberof SiteResponse
259
259
  */
260
- configurations?: Array<ConfigurationResponse>;
260
+ configurationSettings?: Array<ConfigurationSettingResponse>;
261
261
  /**
262
262
  *
263
263
  * @type {Array<CommunicationResponse>}
@@ -275,7 +275,7 @@ export interface SiteResponse {
275
275
  * @type {Array<PlanResponse>}
276
276
  * @memberof SiteResponse
277
277
  */
278
- plan?: Array<PlanResponse>;
278
+ plans?: Array<PlanResponse>;
279
279
  }
280
280
 
281
281
  /**
@@ -323,10 +323,10 @@ export function SiteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
323
323
  'checklists': json['checklists'] == null ? undefined : ((json['checklists'] as Array<any>).map(ChecklistResponseFromJSON)),
324
324
  'taskTemplates': json['taskTemplates'] == null ? undefined : ((json['taskTemplates'] as Array<any>).map(TaskTemplateResponseFromJSON)),
325
325
  'notes': json['notes'] == null ? undefined : ((json['notes'] as Array<any>).map(NoteResponseFromJSON)),
326
- 'configurations': json['configurations'] == null ? undefined : ((json['configurations'] as Array<any>).map(ConfigurationResponseFromJSON)),
326
+ 'configurationSettings': json['configurationSettings'] == null ? undefined : ((json['configurationSettings'] as Array<any>).map(ConfigurationSettingResponseFromJSON)),
327
327
  'communications': json['communications'] == null ? undefined : ((json['communications'] as Array<any>).map(CommunicationResponseFromJSON)),
328
328
  'products': json['products'] == null ? undefined : ((json['products'] as Array<any>).map(ProductResponseFromJSON)),
329
- 'plan': json['Plan'] == null ? undefined : ((json['Plan'] as Array<any>).map(PlanResponseFromJSON)),
329
+ 'plans': json['plans'] == null ? undefined : ((json['plans'] as Array<any>).map(PlanResponseFromJSON)),
330
330
  };
331
331
  }
332
332
 
@@ -361,10 +361,10 @@ export function SiteResponseToJSONTyped(value?: SiteResponse | null, ignoreDiscr
361
361
  'checklists': value['checklists'] == null ? undefined : ((value['checklists'] as Array<any>).map(ChecklistResponseToJSON)),
362
362
  'taskTemplates': value['taskTemplates'] == null ? undefined : ((value['taskTemplates'] as Array<any>).map(TaskTemplateResponseToJSON)),
363
363
  'notes': value['notes'] == null ? undefined : ((value['notes'] as Array<any>).map(NoteResponseToJSON)),
364
- 'configurations': value['configurations'] == null ? undefined : ((value['configurations'] as Array<any>).map(ConfigurationResponseToJSON)),
364
+ 'configurationSettings': value['configurationSettings'] == null ? undefined : ((value['configurationSettings'] as Array<any>).map(ConfigurationSettingResponseToJSON)),
365
365
  'communications': value['communications'] == null ? undefined : ((value['communications'] as Array<any>).map(CommunicationResponseToJSON)),
366
366
  'products': value['products'] == null ? undefined : ((value['products'] as Array<any>).map(ProductResponseToJSON)),
367
- 'Plan': value['plan'] == null ? undefined : ((value['plan'] as Array<any>).map(PlanResponseToJSON)),
367
+ 'plans': value['plans'] == null ? undefined : ((value['plans'] as Array<any>).map(PlanResponseToJSON)),
368
368
  };
369
369
  }
370
370
 
@@ -0,0 +1,99 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace V2 Auth API
5
+ * ManageSpace Auth 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
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ConfigurationSettingType } from './configuration-setting-type';
17
+ import {
18
+ ConfigurationSettingTypeFromJSON,
19
+ ConfigurationSettingTypeFromJSONTyped,
20
+ ConfigurationSettingTypeToJSON,
21
+ ConfigurationSettingTypeToJSONTyped,
22
+ } from './configuration-setting-type';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UpdateConfigurationSetting
28
+ */
29
+ export interface UpdateConfigurationSetting {
30
+ /**
31
+ * Name of setting
32
+ * @type {string}
33
+ * @memberof UpdateConfigurationSetting
34
+ */
35
+ name?: string;
36
+ /**
37
+ * Description of setting
38
+ * @type {string}
39
+ * @memberof UpdateConfigurationSetting
40
+ */
41
+ description?: string;
42
+ /**
43
+ *
44
+ * @type {ConfigurationSettingType}
45
+ * @memberof UpdateConfigurationSetting
46
+ */
47
+ type?: ConfigurationSettingType;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof UpdateConfigurationSetting
52
+ */
53
+ value?: string;
54
+ }
55
+
56
+
57
+
58
+ /**
59
+ * Check if a given object implements the UpdateConfigurationSetting interface.
60
+ */
61
+ export function instanceOfUpdateConfigurationSetting(value: object): value is UpdateConfigurationSetting {
62
+ return true;
63
+ }
64
+
65
+ export function UpdateConfigurationSettingFromJSON(json: any): UpdateConfigurationSetting {
66
+ return UpdateConfigurationSettingFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function UpdateConfigurationSettingFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateConfigurationSetting {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'name': json['name'] == null ? undefined : json['name'],
76
+ 'description': json['description'] == null ? undefined : json['description'],
77
+ 'type': json['type'] == null ? undefined : ConfigurationSettingTypeFromJSON(json['type']),
78
+ 'value': json['value'] == null ? undefined : json['value'],
79
+ };
80
+ }
81
+
82
+ export function UpdateConfigurationSettingToJSON(json: any): UpdateConfigurationSetting {
83
+ return UpdateConfigurationSettingToJSONTyped(json, false);
84
+ }
85
+
86
+ export function UpdateConfigurationSettingToJSONTyped(value?: UpdateConfigurationSetting | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'name': value['name'],
94
+ 'description': value['description'],
95
+ 'type': ConfigurationSettingTypeToJSON(value['type']),
96
+ 'value': value['value'],
97
+ };
98
+ }
99
+