@managespace/sdk 0.1.27 → 0.1.29

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 (63) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +9 -17
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +5 -5
  4. package/dist/generated/apis/default-api.d.ts +13 -1
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +40 -0
  7. package/dist/generated/models/create-product-custom.d.ts +7 -1
  8. package/dist/generated/models/create-product-custom.d.ts.map +1 -1
  9. package/dist/generated/models/create-product-custom.js +4 -0
  10. package/dist/generated/models/index.d.ts +1 -0
  11. package/dist/generated/models/index.d.ts.map +1 -1
  12. package/dist/generated/models/index.js +1 -0
  13. package/dist/generated/models/product-custom.d.ts +7 -1
  14. package/dist/generated/models/product-custom.d.ts.map +1 -1
  15. package/dist/generated/models/product-custom.js +4 -0
  16. package/dist/generated/models/update-product.d.ts +112 -0
  17. package/dist/generated/models/update-product.d.ts.map +1 -0
  18. package/dist/generated/models/update-product.js +88 -0
  19. package/package.deploy.json +1 -1
  20. package/package.json +1 -1
  21. package/src/extensibility/functions/project/billing.ts +7 -17
  22. package/src/generated/.openapi-generator/FILES +1 -0
  23. package/src/generated/apis/default-api.ts +70 -0
  24. package/src/generated/models/create-product-custom.ts +10 -1
  25. package/src/generated/models/index.ts +1 -0
  26. package/src/generated/models/product-custom.ts +10 -1
  27. package/src/generated/models/update-product.ts +183 -0
  28. package/dist/generated/models/change-active-site.d.ts +0 -33
  29. package/dist/generated/models/change-active-site.d.ts.map +0 -1
  30. package/dist/generated/models/change-active-site.js +0 -51
  31. package/dist/generated/models/create-checklist.d.ts +0 -76
  32. package/dist/generated/models/create-checklist.d.ts.map +0 -1
  33. package/dist/generated/models/create-checklist.js +0 -72
  34. package/dist/generated/models/create-task-template.d.ts +0 -45
  35. package/dist/generated/models/create-task-template.d.ts.map +0 -1
  36. package/dist/generated/models/create-task-template.js +0 -57
  37. package/dist/generated/models/create-task.d.ts +0 -76
  38. package/dist/generated/models/create-task.d.ts.map +0 -1
  39. package/dist/generated/models/create-task.js +0 -72
  40. package/dist/generated/models/custom-update-task-template.d.ts +0 -51
  41. package/dist/generated/models/custom-update-task-template.d.ts.map +0 -1
  42. package/dist/generated/models/custom-update-task-template.js +0 -63
  43. package/dist/generated/models/document-signed.d.ts +0 -69
  44. package/dist/generated/models/document-signed.d.ts.map +0 -1
  45. package/dist/generated/models/document-signed.js +0 -65
  46. package/dist/generated/models/get-payments1200-response.d.ts +0 -41
  47. package/dist/generated/models/get-payments1200-response.d.ts.map +0 -1
  48. package/dist/generated/models/get-payments1200-response.js +0 -55
  49. package/dist/generated/models/get-task-templates200-response.d.ts +0 -41
  50. package/dist/generated/models/get-task-templates200-response.d.ts.map +0 -1
  51. package/dist/generated/models/get-task-templates200-response.js +0 -55
  52. package/dist/generated/models/get-tasks200-response.d.ts +0 -41
  53. package/dist/generated/models/get-tasks200-response.d.ts.map +0 -1
  54. package/dist/generated/models/get-tasks200-response.js +0 -55
  55. package/dist/generated/models/task-template.d.ts +0 -98
  56. package/dist/generated/models/task-template.d.ts.map +0 -1
  57. package/dist/generated/models/task-template.js +0 -86
  58. package/dist/generated/models/task.d.ts +0 -160
  59. package/dist/generated/models/task.d.ts.map +0 -1
  60. package/dist/generated/models/task.js +0 -122
  61. package/dist/generated/models/update-checklist-task-template.d.ts +0 -33
  62. package/dist/generated/models/update-checklist-task-template.d.ts.map +0 -1
  63. package/dist/generated/models/update-checklist-task-template.js +0 -51
@@ -0,0 +1,183 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace API
5
+ * ManageSpace 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 { TransactionPostingEntries } from './transaction-posting-entries';
17
+ import {
18
+ TransactionPostingEntriesFromJSON,
19
+ TransactionPostingEntriesFromJSONTyped,
20
+ TransactionPostingEntriesToJSON,
21
+ TransactionPostingEntriesToJSONTyped,
22
+ } from './transaction-posting-entries';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UpdateProduct
28
+ */
29
+ export interface UpdateProduct {
30
+ /**
31
+ * The product name
32
+ * @type {string}
33
+ * @memberof UpdateProduct
34
+ */
35
+ name: string;
36
+ /**
37
+ * Stock keeping unit
38
+ * @type {string}
39
+ * @memberof UpdateProduct
40
+ */
41
+ sku?: string;
42
+ /**
43
+ * Product status
44
+ * @type {string}
45
+ * @memberof UpdateProduct
46
+ */
47
+ status?: string;
48
+ /**
49
+ * Tax exempt
50
+ * @type {boolean}
51
+ * @memberof UpdateProduct
52
+ */
53
+ taxable?: boolean;
54
+ /**
55
+ * Indicates whether it is the default product or not
56
+ * @type {boolean}
57
+ * @memberof UpdateProduct
58
+ */
59
+ isDefault?: boolean;
60
+ /**
61
+ * Indicates whether it is related to rent or not
62
+ * @type {boolean}
63
+ * @memberof UpdateProduct
64
+ */
65
+ rentRelated: boolean;
66
+ /**
67
+ * Description of product
68
+ * @type {string}
69
+ * @memberof UpdateProduct
70
+ */
71
+ description?: string;
72
+ /**
73
+ * The price of the product in the lowest denomination of the currency
74
+ * @type {number}
75
+ * @memberof UpdateProduct
76
+ */
77
+ price: number;
78
+ /**
79
+ * Revenue Rule ID.
80
+ * @type {string}
81
+ * @memberof UpdateProduct
82
+ */
83
+ revenueRuleId: string;
84
+ /**
85
+ * Date revenue will begin to be recognized.
86
+ * @type {string}
87
+ * @memberof UpdateProduct
88
+ */
89
+ recognitionStartDate: string;
90
+ /**
91
+ *
92
+ * @type {Array<TransactionPostingEntries>}
93
+ * @memberof UpdateProduct
94
+ */
95
+ transactionPostingEntries: Array<TransactionPostingEntries>;
96
+ /**
97
+ * List of custom fields
98
+ * @type {object}
99
+ * @memberof UpdateProduct
100
+ */
101
+ customFields?: object;
102
+ /**
103
+ * Code of Chart of Account
104
+ * @type {string}
105
+ * @memberof UpdateProduct
106
+ */
107
+ incomeAccount?: string;
108
+ /**
109
+ * Select which tax group to be used
110
+ * @type {string}
111
+ * @memberof UpdateProduct
112
+ */
113
+ productTaxGroupName?: string;
114
+ }
115
+
116
+ /**
117
+ * Check if a given object implements the UpdateProduct interface.
118
+ */
119
+ export function instanceOfUpdateProduct(value: object): value is UpdateProduct {
120
+ if (!('name' in value) || value['name'] === undefined) return false;
121
+ if (!('rentRelated' in value) || value['rentRelated'] === undefined) return false;
122
+ if (!('price' in value) || value['price'] === undefined) return false;
123
+ if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined) return false;
124
+ if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined) return false;
125
+ if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined) return false;
126
+ return true;
127
+ }
128
+
129
+ export function UpdateProductFromJSON(json: any): UpdateProduct {
130
+ return UpdateProductFromJSONTyped(json, false);
131
+ }
132
+
133
+ export function UpdateProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProduct {
134
+ if (json == null) {
135
+ return json;
136
+ }
137
+ return {
138
+
139
+ 'name': json['name'],
140
+ 'sku': json['sku'] == null ? undefined : json['sku'],
141
+ 'status': json['status'] == null ? undefined : json['status'],
142
+ 'taxable': json['taxable'] == null ? undefined : json['taxable'],
143
+ 'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
144
+ 'rentRelated': json['rentRelated'],
145
+ 'description': json['description'] == null ? undefined : json['description'],
146
+ 'price': json['price'],
147
+ 'revenueRuleId': json['revenueRuleId'],
148
+ 'recognitionStartDate': json['recognitionStartDate'],
149
+ 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
150
+ 'customFields': json['customFields'] == null ? undefined : json['customFields'],
151
+ 'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
152
+ 'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
153
+ };
154
+ }
155
+
156
+ export function UpdateProductToJSON(json: any): UpdateProduct {
157
+ return UpdateProductToJSONTyped(json, false);
158
+ }
159
+
160
+ export function UpdateProductToJSONTyped(value?: UpdateProduct | null, ignoreDiscriminator: boolean = false): any {
161
+ if (value == null) {
162
+ return value;
163
+ }
164
+
165
+ return {
166
+
167
+ 'name': value['name'],
168
+ 'sku': value['sku'],
169
+ 'status': value['status'],
170
+ 'taxable': value['taxable'],
171
+ 'isDefault': value['isDefault'],
172
+ 'rentRelated': value['rentRelated'],
173
+ 'description': value['description'],
174
+ 'price': value['price'],
175
+ 'revenueRuleId': value['revenueRuleId'],
176
+ 'recognitionStartDate': value['recognitionStartDate'],
177
+ 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
178
+ 'customFields': value['customFields'],
179
+ 'incomeAccount': value['incomeAccount'],
180
+ 'productTaxGroupName': value['productTaxGroupName'],
181
+ };
182
+ }
183
+
@@ -1,33 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace 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 ChangeActiveSite
16
- */
17
- export interface ChangeActiveSite {
18
- /**
19
- * The ID of the site the user is currently active on.
20
- * @type {string}
21
- * @memberof ChangeActiveSite
22
- */
23
- activeSiteId: string;
24
- }
25
- /**
26
- * Check if a given object implements the ChangeActiveSite interface.
27
- */
28
- export declare function instanceOfChangeActiveSite(value: object): value is ChangeActiveSite;
29
- export declare function ChangeActiveSiteFromJSON(json: any): ChangeActiveSite;
30
- export declare function ChangeActiveSiteFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeActiveSite;
31
- export declare function ChangeActiveSiteToJSON(json: any): ChangeActiveSite;
32
- export declare function ChangeActiveSiteToJSONTyped(value?: ChangeActiveSite | null, ignoreDiscriminator?: boolean): any;
33
- //# sourceMappingURL=change-active-site.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"change-active-site.d.ts","sourceRoot":"","sources":["../../../src/generated/models/change-active-site.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAGnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAQvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAStH"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ChangeActiveSiteToJSONTyped = exports.ChangeActiveSiteToJSON = exports.ChangeActiveSiteFromJSONTyped = exports.ChangeActiveSiteFromJSON = exports.instanceOfChangeActiveSite = void 0;
17
- /**
18
- * Check if a given object implements the ChangeActiveSite interface.
19
- */
20
- function instanceOfChangeActiveSite(value) {
21
- if (!('activeSiteId' in value) || value['activeSiteId'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfChangeActiveSite = instanceOfChangeActiveSite;
26
- function ChangeActiveSiteFromJSON(json) {
27
- return ChangeActiveSiteFromJSONTyped(json, false);
28
- }
29
- exports.ChangeActiveSiteFromJSON = ChangeActiveSiteFromJSON;
30
- function ChangeActiveSiteFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'activeSiteId': json['activeSiteId'],
36
- };
37
- }
38
- exports.ChangeActiveSiteFromJSONTyped = ChangeActiveSiteFromJSONTyped;
39
- function ChangeActiveSiteToJSON(json) {
40
- return ChangeActiveSiteToJSONTyped(json, false);
41
- }
42
- exports.ChangeActiveSiteToJSON = ChangeActiveSiteToJSON;
43
- function ChangeActiveSiteToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'activeSiteId': value['activeSiteId'],
49
- };
50
- }
51
- exports.ChangeActiveSiteToJSONTyped = ChangeActiveSiteToJSONTyped;
@@ -1,76 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace 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
- import type { ChecklistRecurrenceFrequency } from './checklist-recurrence-frequency';
13
- /**
14
- *
15
- * @export
16
- * @interface CreateChecklist
17
- */
18
- export interface CreateChecklist {
19
- /**
20
- * Name of checklist
21
- * @type {string}
22
- * @memberof CreateChecklist
23
- */
24
- name: string;
25
- /**
26
- *
27
- * @type {ChecklistRecurrenceFrequency}
28
- * @memberof CreateChecklist
29
- */
30
- recurrence: ChecklistRecurrenceFrequency;
31
- /**
32
- * Interval of frequency (1st of the month)
33
- * @type {number}
34
- * @memberof CreateChecklist
35
- */
36
- interval: number;
37
- /**
38
- * Which day to repeat checklist
39
- * @type {string}
40
- * @memberof CreateChecklist
41
- */
42
- byDay?: string | null;
43
- /**
44
- * Which month to repeat checklsit
45
- * @type {number}
46
- * @memberof CreateChecklist
47
- */
48
- byMonth?: number | null;
49
- /**
50
- * Which day of the month to repeat checklist
51
- * @type {number}
52
- * @memberof CreateChecklist
53
- */
54
- byMonthDay?: number | null;
55
- /**
56
- * What day the checklist started
57
- * @type {Date}
58
- * @memberof CreateChecklist
59
- */
60
- startDate: Date;
61
- /**
62
- * When to repeat the checklist
63
- * @type {Date}
64
- * @memberof CreateChecklist
65
- */
66
- executeBy?: Date | null;
67
- }
68
- /**
69
- * Check if a given object implements the CreateChecklist interface.
70
- */
71
- export declare function instanceOfCreateChecklist(value: object): value is CreateChecklist;
72
- export declare function CreateChecklistFromJSON(json: any): CreateChecklist;
73
- export declare function CreateChecklistFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChecklist;
74
- export declare function CreateChecklistToJSON(json: any): CreateChecklist;
75
- export declare function CreateChecklistToJSONTyped(value?: CreateChecklist | null, ignoreDiscriminator?: boolean): any;
76
- //# sourceMappingURL=create-checklist.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-checklist.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-checklist.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAQrF;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,UAAU,EAAE,4BAA4B,CAAC;IACzC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CAC3B;AAID;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAMjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAerG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgBpH"}
@@ -1,72 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateChecklistToJSONTyped = exports.CreateChecklistToJSON = exports.CreateChecklistFromJSONTyped = exports.CreateChecklistFromJSON = exports.instanceOfCreateChecklist = void 0;
17
- const checklist_recurrence_frequency_1 = require("./checklist-recurrence-frequency");
18
- /**
19
- * Check if a given object implements the CreateChecklist interface.
20
- */
21
- function instanceOfCreateChecklist(value) {
22
- if (!('name' in value) || value['name'] === undefined)
23
- return false;
24
- if (!('recurrence' in value) || value['recurrence'] === undefined)
25
- return false;
26
- if (!('interval' in value) || value['interval'] === undefined)
27
- return false;
28
- if (!('startDate' in value) || value['startDate'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- exports.instanceOfCreateChecklist = instanceOfCreateChecklist;
33
- function CreateChecklistFromJSON(json) {
34
- return CreateChecklistFromJSONTyped(json, false);
35
- }
36
- exports.CreateChecklistFromJSON = CreateChecklistFromJSON;
37
- function CreateChecklistFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'name': json['name'],
43
- 'recurrence': (0, checklist_recurrence_frequency_1.ChecklistRecurrenceFrequencyFromJSON)(json['recurrence']),
44
- 'interval': json['interval'],
45
- 'byDay': json['byDay'] == null ? undefined : json['byDay'],
46
- 'byMonth': json['byMonth'] == null ? undefined : json['byMonth'],
47
- 'byMonthDay': json['byMonthDay'] == null ? undefined : json['byMonthDay'],
48
- 'startDate': (new Date(json['startDate'])),
49
- 'executeBy': json['executeBy'] == null ? undefined : (new Date(json['executeBy'])),
50
- };
51
- }
52
- exports.CreateChecklistFromJSONTyped = CreateChecklistFromJSONTyped;
53
- function CreateChecklistToJSON(json) {
54
- return CreateChecklistToJSONTyped(json, false);
55
- }
56
- exports.CreateChecklistToJSON = CreateChecklistToJSON;
57
- function CreateChecklistToJSONTyped(value, ignoreDiscriminator = false) {
58
- if (value == null) {
59
- return value;
60
- }
61
- return {
62
- 'name': value['name'],
63
- 'recurrence': (0, checklist_recurrence_frequency_1.ChecklistRecurrenceFrequencyToJSON)(value['recurrence']),
64
- 'interval': value['interval'],
65
- 'byDay': value['byDay'],
66
- 'byMonth': value['byMonth'],
67
- 'byMonthDay': value['byMonthDay'],
68
- 'startDate': ((value['startDate']).toISOString()),
69
- 'executeBy': value['executeBy'] == null ? undefined : (value['executeBy'].toISOString()),
70
- };
71
- }
72
- exports.CreateChecklistToJSONTyped = CreateChecklistToJSONTyped;
@@ -1,45 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace 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 CreateTaskTemplate
16
- */
17
- export interface CreateTaskTemplate {
18
- /**
19
- * Name of task template
20
- * @type {string}
21
- * @memberof CreateTaskTemplate
22
- */
23
- name: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof CreateTaskTemplate
28
- */
29
- assignedToUserId?: string | null;
30
- /**
31
- * List of tasks
32
- * @type {object}
33
- * @memberof CreateTaskTemplate
34
- */
35
- taskList: object;
36
- }
37
- /**
38
- * Check if a given object implements the CreateTaskTemplate interface.
39
- */
40
- export declare function instanceOfCreateTaskTemplate(value: object): value is CreateTaskTemplate;
41
- export declare function CreateTaskTemplateFromJSON(json: any): CreateTaskTemplate;
42
- export declare function CreateTaskTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTaskTemplate;
43
- export declare function CreateTaskTemplateToJSON(json: any): CreateTaskTemplate;
44
- export declare function CreateTaskTemplateToJSONTyped(value?: CreateTaskTemplate | null, ignoreDiscriminator?: boolean): any;
45
- //# sourceMappingURL=create-task-template.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-task-template.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-task-template.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAIvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAU3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1H"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateTaskTemplateToJSONTyped = exports.CreateTaskTemplateToJSON = exports.CreateTaskTemplateFromJSONTyped = exports.CreateTaskTemplateFromJSON = exports.instanceOfCreateTaskTemplate = void 0;
17
- /**
18
- * Check if a given object implements the CreateTaskTemplate interface.
19
- */
20
- function instanceOfCreateTaskTemplate(value) {
21
- if (!('name' in value) || value['name'] === undefined)
22
- return false;
23
- if (!('taskList' in value) || value['taskList'] === undefined)
24
- return false;
25
- return true;
26
- }
27
- exports.instanceOfCreateTaskTemplate = instanceOfCreateTaskTemplate;
28
- function CreateTaskTemplateFromJSON(json) {
29
- return CreateTaskTemplateFromJSONTyped(json, false);
30
- }
31
- exports.CreateTaskTemplateFromJSON = CreateTaskTemplateFromJSON;
32
- function CreateTaskTemplateFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'name': json['name'],
38
- 'assignedToUserId': json['assignedToUserId'] == null ? undefined : json['assignedToUserId'],
39
- 'taskList': json['taskList'],
40
- };
41
- }
42
- exports.CreateTaskTemplateFromJSONTyped = CreateTaskTemplateFromJSONTyped;
43
- function CreateTaskTemplateToJSON(json) {
44
- return CreateTaskTemplateToJSONTyped(json, false);
45
- }
46
- exports.CreateTaskTemplateToJSON = CreateTaskTemplateToJSON;
47
- function CreateTaskTemplateToJSONTyped(value, ignoreDiscriminator = false) {
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'name': value['name'],
53
- 'assignedToUserId': value['assignedToUserId'],
54
- 'taskList': value['taskList'],
55
- };
56
- }
57
- exports.CreateTaskTemplateToJSONTyped = CreateTaskTemplateToJSONTyped;
@@ -1,76 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace 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
- import type { TaskCompletionStatus } from './task-completion-status';
13
- /**
14
- *
15
- * @export
16
- * @interface CreateTask
17
- */
18
- export interface CreateTask {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof CreateTask
23
- */
24
- createdByExtensibilityFunctionInstanceId?: string | null;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof CreateTask
29
- */
30
- assignedToUserId: string;
31
- /**
32
- * Name of Task
33
- * @type {string}
34
- * @memberof CreateTask
35
- */
36
- name: string;
37
- /**
38
- * Any relevant information for the task
39
- * @type {string}
40
- * @memberof CreateTask
41
- */
42
- description?: string | null;
43
- /**
44
- * When the notification should be shown
45
- * @type {Date}
46
- * @memberof CreateTask
47
- */
48
- dueBy: Date;
49
- /**
50
- *
51
- * @type {TaskCompletionStatus}
52
- * @memberof CreateTask
53
- */
54
- status: TaskCompletionStatus;
55
- /**
56
- *
57
- * @type {string}
58
- * @memberof CreateTask
59
- */
60
- checklistId?: string | null;
61
- /**
62
- *
63
- * @type {string}
64
- * @memberof CreateTask
65
- */
66
- taskTemplateId?: string | null;
67
- }
68
- /**
69
- * Check if a given object implements the CreateTask interface.
70
- */
71
- export declare function instanceOfCreateTask(value: object): value is CreateTask;
72
- export declare function CreateTaskFromJSON(json: any): CreateTask;
73
- export declare function CreateTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTask;
74
- export declare function CreateTaskToJSON(json: any): CreateTask;
75
- export declare function CreateTaskToJSONTyped(value?: CreateTask | null, ignoreDiscriminator?: boolean): any;
76
- //# sourceMappingURL=create-task.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-task.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-task.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,wCAAwC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzD;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,KAAK,EAAE,IAAI,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,oBAAoB,CAAC;IAC7B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAID;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAMvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAe3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB1G"}
@@ -1,72 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateTaskToJSONTyped = exports.CreateTaskToJSON = exports.CreateTaskFromJSONTyped = exports.CreateTaskFromJSON = exports.instanceOfCreateTask = void 0;
17
- const task_completion_status_1 = require("./task-completion-status");
18
- /**
19
- * Check if a given object implements the CreateTask interface.
20
- */
21
- function instanceOfCreateTask(value) {
22
- if (!('assignedToUserId' in value) || value['assignedToUserId'] === undefined)
23
- return false;
24
- if (!('name' in value) || value['name'] === undefined)
25
- return false;
26
- if (!('dueBy' in value) || value['dueBy'] === undefined)
27
- return false;
28
- if (!('status' in value) || value['status'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- exports.instanceOfCreateTask = instanceOfCreateTask;
33
- function CreateTaskFromJSON(json) {
34
- return CreateTaskFromJSONTyped(json, false);
35
- }
36
- exports.CreateTaskFromJSON = CreateTaskFromJSON;
37
- function CreateTaskFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'createdByExtensibilityFunctionInstanceId': json['createdByExtensibilityFunctionInstanceId'] == null ? undefined : json['createdByExtensibilityFunctionInstanceId'],
43
- 'assignedToUserId': json['assignedToUserId'],
44
- 'name': json['name'],
45
- 'description': json['description'] == null ? undefined : json['description'],
46
- 'dueBy': (new Date(json['dueBy'])),
47
- 'status': (0, task_completion_status_1.TaskCompletionStatusFromJSON)(json['status']),
48
- 'checklistId': json['checklistId'] == null ? undefined : json['checklistId'],
49
- 'taskTemplateId': json['taskTemplateId'] == null ? undefined : json['taskTemplateId'],
50
- };
51
- }
52
- exports.CreateTaskFromJSONTyped = CreateTaskFromJSONTyped;
53
- function CreateTaskToJSON(json) {
54
- return CreateTaskToJSONTyped(json, false);
55
- }
56
- exports.CreateTaskToJSON = CreateTaskToJSON;
57
- function CreateTaskToJSONTyped(value, ignoreDiscriminator = false) {
58
- if (value == null) {
59
- return value;
60
- }
61
- return {
62
- 'createdByExtensibilityFunctionInstanceId': value['createdByExtensibilityFunctionInstanceId'],
63
- 'assignedToUserId': value['assignedToUserId'],
64
- 'name': value['name'],
65
- 'description': value['description'],
66
- 'dueBy': ((value['dueBy']).toISOString()),
67
- 'status': (0, task_completion_status_1.TaskCompletionStatusToJSON)(value['status']),
68
- 'checklistId': value['checklistId'],
69
- 'taskTemplateId': value['taskTemplateId'],
70
- };
71
- }
72
- exports.CreateTaskToJSONTyped = CreateTaskToJSONTyped;