@managespace/sdk 0.1.20 → 0.1.21

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 (28) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +19 -1
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +15 -0
  4. package/dist/generated/apis/default-api.d.ts +44 -8
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +150 -14
  7. package/dist/generated/models/create-template.d.ts +2 -2
  8. package/dist/generated/models/create-template.d.ts.map +1 -1
  9. package/dist/generated/models/create-template.js +3 -3
  10. package/dist/generated/models/document-complete.d.ts +2 -2
  11. package/dist/generated/models/document-complete.d.ts.map +1 -1
  12. package/dist/generated/models/document-complete.js +3 -3
  13. package/dist/generated/models/index.d.ts +4 -2
  14. package/dist/generated/models/index.d.ts.map +1 -1
  15. package/dist/generated/models/index.js +4 -2
  16. package/package.json +1 -1
  17. package/src/extensibility/functions/project/billing.ts +21 -0
  18. package/src/generated/.openapi-generator/FILES +4 -2
  19. package/src/generated/apis/default-api.ts +233 -31
  20. package/src/generated/models/create-product-tax-group.ts +82 -0
  21. package/src/generated/models/create-template.ts +5 -5
  22. package/src/generated/models/document-complete.ts +5 -5
  23. package/src/generated/models/get-product-tax-groups200-response.ts +89 -0
  24. package/src/generated/models/index.ts +4 -2
  25. package/src/generated/models/notstarted.ts +55 -0
  26. package/src/generated/models/product-tax-group.ts +109 -0
  27. package/src/generated/models/comparison-operator.ts +0 -63
  28. package/src/generated/models/get-subscriptions-post200-response.ts +0 -89
@@ -0,0 +1,89 @@
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 { PageMeta } from './page-meta';
17
+ import {
18
+ PageMetaFromJSON,
19
+ PageMetaFromJSONTyped,
20
+ PageMetaToJSON,
21
+ PageMetaToJSONTyped,
22
+ } from './page-meta';
23
+ import type { ProductTaxGroup } from './product-tax-group';
24
+ import {
25
+ ProductTaxGroupFromJSON,
26
+ ProductTaxGroupFromJSONTyped,
27
+ ProductTaxGroupToJSON,
28
+ ProductTaxGroupToJSONTyped,
29
+ } from './product-tax-group';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface GetProductTaxGroups200Response
35
+ */
36
+ export interface GetProductTaxGroups200Response {
37
+ /**
38
+ * The pagination metadata
39
+ * @type {PageMeta}
40
+ * @memberof GetProductTaxGroups200Response
41
+ */
42
+ pageMeta: PageMeta;
43
+ /**
44
+ *
45
+ * @type {Array<ProductTaxGroup>}
46
+ * @memberof GetProductTaxGroups200Response
47
+ */
48
+ results?: Array<ProductTaxGroup>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the GetProductTaxGroups200Response interface.
53
+ */
54
+ export function instanceOfGetProductTaxGroups200Response(value: object): value is GetProductTaxGroups200Response {
55
+ if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function GetProductTaxGroups200ResponseFromJSON(json: any): GetProductTaxGroups200Response {
60
+ return GetProductTaxGroups200ResponseFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function GetProductTaxGroups200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetProductTaxGroups200Response {
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(ProductTaxGroupFromJSON)),
71
+ };
72
+ }
73
+
74
+ export function GetProductTaxGroups200ResponseToJSON(json: any): GetProductTaxGroups200Response {
75
+ return GetProductTaxGroups200ResponseToJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetProductTaxGroups200ResponseToJSONTyped(value?: GetProductTaxGroups200Response | 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(ProductTaxGroupToJSON)),
87
+ };
88
+ }
89
+
@@ -49,6 +49,7 @@ export * from './create-payment-refund';
49
49
  export * from './create-payment-run';
50
50
  export * from './create-plan-charge';
51
51
  export * from './create-product-custom';
52
+ export * from './create-product-tax-group';
52
53
  export * from './create-revenue-rule';
53
54
  export * from './create-site-custom';
54
55
  export * from './create-smart-bar-prompt';
@@ -108,11 +109,12 @@ export * from './get-payment-runs200-response';
108
109
  export * from './get-payments200-response';
109
110
  export * from './get-plans200-response';
110
111
  export * from './get-plugins200-response';
112
+ export * from './get-product-tax-groups200-response';
111
113
  export * from './get-products200-response';
112
114
  export * from './get-revenue-rules200-response';
113
115
  export * from './get-sites200-response';
114
116
  export * from './get-statements200-response';
115
- export * from './get-subscriptions-post200-response';
117
+ export * from './get-subscriptions200-response';
116
118
  export * from './get-subscriptions-query';
117
119
  export * from './get-task-definitions200-response';
118
120
  export * from './get-task-instances200-response';
@@ -154,6 +156,7 @@ export * from './plugin-filter-item';
154
156
  export * from './plugin-filter-operator';
155
157
  export * from './plugin-version';
156
158
  export * from './product-custom';
159
+ export * from './product-tax-group';
157
160
  export * from './project';
158
161
  export * from './project1';
159
162
  export * from './project2';
@@ -212,7 +215,6 @@ export * from './update-subscription-charge';
212
215
  export * from './update-task-instance';
213
216
  export * from './update-user-properties';
214
217
  export * from './update-workflow-instance-description';
215
- export * from './upload-document';
216
218
  export * from './uploaded-document';
217
219
  export * from './user';
218
220
  export * from './user-id';
@@ -0,0 +1,55 @@
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const NOTSTARTED = {
21
+ NotStarted: 'NOT_STARTED',
22
+ InProgress: 'IN_PROGRESS',
23
+ Complete: 'COMPLETE',
24
+ Overdue: 'OVERDUE'
25
+ } as const;
26
+ export type NOTSTARTED = typeof NOTSTARTED[keyof typeof NOTSTARTED];
27
+
28
+
29
+ export function instanceOfNOTSTARTED(value: any): boolean {
30
+ for (const key in NOTSTARTED) {
31
+ if (Object.prototype.hasOwnProperty.call(NOTSTARTED, key)) {
32
+ if (NOTSTARTED[key as keyof typeof NOTSTARTED] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function NOTSTARTEDFromJSON(json: any): NOTSTARTED {
41
+ return NOTSTARTEDFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function NOTSTARTEDFromJSONTyped(json: any, ignoreDiscriminator: boolean): NOTSTARTED {
45
+ return json as NOTSTARTED;
46
+ }
47
+
48
+ export function NOTSTARTEDToJSON(value?: NOTSTARTED | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function NOTSTARTEDToJSONTyped(value: any, ignoreDiscriminator: boolean): NOTSTARTED {
53
+ return value as NOTSTARTED;
54
+ }
55
+
@@ -0,0 +1,109 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface ProductTaxGroup
20
+ */
21
+ export interface ProductTaxGroup {
22
+ /**
23
+ * name of tax group
24
+ * @type {string}
25
+ * @memberof ProductTaxGroup
26
+ */
27
+ name: string;
28
+ /**
29
+ * Note for tax group
30
+ * @type {string}
31
+ * @memberof ProductTaxGroup
32
+ */
33
+ notes?: string;
34
+ /**
35
+ * Status of tax group
36
+ * @type {string}
37
+ * @memberof ProductTaxGroup
38
+ */
39
+ status?: string;
40
+ /**
41
+ * Product Tax Group ID
42
+ * @type {string}
43
+ * @memberof ProductTaxGroup
44
+ */
45
+ id: string;
46
+ /**
47
+ * The date the product tax group was created
48
+ * @type {string}
49
+ * @memberof ProductTaxGroup
50
+ */
51
+ createdAt: string;
52
+ /**
53
+ * The date the product tax group was updated
54
+ * @type {string}
55
+ * @memberof ProductTaxGroup
56
+ */
57
+ updatedAt: string;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the ProductTaxGroup interface.
62
+ */
63
+ export function instanceOfProductTaxGroup(value: object): value is ProductTaxGroup {
64
+ if (!('name' in value) || value['name'] === undefined) return false;
65
+ if (!('id' in value) || value['id'] === undefined) return false;
66
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
67
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
68
+ return true;
69
+ }
70
+
71
+ export function ProductTaxGroupFromJSON(json: any): ProductTaxGroup {
72
+ return ProductTaxGroupFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function ProductTaxGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTaxGroup {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'name': json['name'],
82
+ 'notes': json['notes'] == null ? undefined : json['notes'],
83
+ 'status': json['status'] == null ? undefined : json['status'],
84
+ 'id': json['id'],
85
+ 'createdAt': json['createdAt'],
86
+ 'updatedAt': json['updatedAt'],
87
+ };
88
+ }
89
+
90
+ export function ProductTaxGroupToJSON(json: any): ProductTaxGroup {
91
+ return ProductTaxGroupToJSONTyped(json, false);
92
+ }
93
+
94
+ export function ProductTaxGroupToJSONTyped(value?: ProductTaxGroup | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'name': value['name'],
102
+ 'notes': value['notes'],
103
+ 'status': value['status'],
104
+ 'id': value['id'],
105
+ 'createdAt': value['createdAt'],
106
+ 'updatedAt': value['updatedAt'],
107
+ };
108
+ }
109
+
@@ -1,63 +0,0 @@
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
-
16
- /**
17
- * The operator to use when filtering
18
- * @export
19
- */
20
- export const ComparisonOperator = {
21
- Contains: 'contains',
22
- EndsWith: 'endsWith',
23
- Equals: 'equals',
24
- Gt: 'gt',
25
- Gte: 'gte',
26
- In: 'in',
27
- Lt: 'lt',
28
- Lte: 'lte',
29
- Not: 'not',
30
- NotIn: 'notIn',
31
- Search: 'search',
32
- StartsWith: 'startsWith'
33
- } as const;
34
- export type ComparisonOperator = typeof ComparisonOperator[keyof typeof ComparisonOperator];
35
-
36
-
37
- export function instanceOfComparisonOperator(value: any): boolean {
38
- for (const key in ComparisonOperator) {
39
- if (Object.prototype.hasOwnProperty.call(ComparisonOperator, key)) {
40
- if (ComparisonOperator[key as keyof typeof ComparisonOperator] === value) {
41
- return true;
42
- }
43
- }
44
- }
45
- return false;
46
- }
47
-
48
- export function ComparisonOperatorFromJSON(json: any): ComparisonOperator {
49
- return ComparisonOperatorFromJSONTyped(json, false);
50
- }
51
-
52
- export function ComparisonOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComparisonOperator {
53
- return json as ComparisonOperator;
54
- }
55
-
56
- export function ComparisonOperatorToJSON(value?: ComparisonOperator | null): any {
57
- return value as any;
58
- }
59
-
60
- export function ComparisonOperatorToJSONTyped(value: any, ignoreDiscriminator: boolean): ComparisonOperator {
61
- return value as ComparisonOperator;
62
- }
63
-
@@ -1,89 +0,0 @@
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 { PageMeta } from './page-meta';
17
- import {
18
- PageMetaFromJSON,
19
- PageMetaFromJSONTyped,
20
- PageMetaToJSON,
21
- PageMetaToJSONTyped,
22
- } from './page-meta';
23
- import type { Subscription } from './subscription';
24
- import {
25
- SubscriptionFromJSON,
26
- SubscriptionFromJSONTyped,
27
- SubscriptionToJSON,
28
- SubscriptionToJSONTyped,
29
- } from './subscription';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface GetSubscriptionsPost200Response
35
- */
36
- export interface GetSubscriptionsPost200Response {
37
- /**
38
- * The pagination metadata
39
- * @type {PageMeta}
40
- * @memberof GetSubscriptionsPost200Response
41
- */
42
- pageMeta: PageMeta;
43
- /**
44
- *
45
- * @type {Array<Subscription>}
46
- * @memberof GetSubscriptionsPost200Response
47
- */
48
- results?: Array<Subscription>;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the GetSubscriptionsPost200Response interface.
53
- */
54
- export function instanceOfGetSubscriptionsPost200Response(value: object): value is GetSubscriptionsPost200Response {
55
- if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
56
- return true;
57
- }
58
-
59
- export function GetSubscriptionsPost200ResponseFromJSON(json: any): GetSubscriptionsPost200Response {
60
- return GetSubscriptionsPost200ResponseFromJSONTyped(json, false);
61
- }
62
-
63
- export function GetSubscriptionsPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSubscriptionsPost200Response {
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(SubscriptionFromJSON)),
71
- };
72
- }
73
-
74
- export function GetSubscriptionsPost200ResponseToJSON(json: any): GetSubscriptionsPost200Response {
75
- return GetSubscriptionsPost200ResponseToJSONTyped(json, false);
76
- }
77
-
78
- export function GetSubscriptionsPost200ResponseToJSONTyped(value?: GetSubscriptionsPost200Response | 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(SubscriptionToJSON)),
87
- };
88
- }
89
-