@managespace/sdk 0.1.192 → 0.1.194
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/dist/extensibility/functions/project/billing.d.ts +30 -4
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +5 -0
- package/dist/generated/apis/default-api.d.ts +5 -5
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +9 -10
- package/dist/generated/models/index.d.ts +1 -3
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +1 -3
- package/dist/generated/models/reverse-invoice.d.ts +33 -0
- package/dist/generated/models/reverse-invoice.d.ts.map +1 -0
- package/dist/generated/models/reverse-invoice.js +51 -0
- package/dist/generated/models/template-field.d.ts +3 -4
- package/dist/generated/models/template-field.d.ts.map +1 -1
- package/dist/generated/models/template-field.js +2 -3
- package/package.deploy.json +8 -4
- package/package.json +4 -3
- package/src/extensibility/functions/project/billing.ts +34 -3
- package/src/generated/.openapi-generator/FILES +0 -3
- package/src/generated/apis/default-api.ts +16 -14
- package/src/generated/models/index.ts +1 -3
- package/src/generated/models/reverse-invoice.ts +67 -0
- package/src/generated/models/template-field.ts +5 -12
- package/dist/generated/models/field-condition-action.d.ts +0 -32
- package/dist/generated/models/field-condition-action.d.ts.map +0 -1
- package/dist/generated/models/field-condition-action.js +0 -58
- package/dist/generated/models/field-condition-operation.d.ts +0 -25
- package/dist/generated/models/field-condition-operation.d.ts.map +0 -1
- package/dist/generated/models/field-condition-operation.js +0 -51
- package/dist/generated/models/field-condition.d.ts +0 -59
- package/dist/generated/models/field-condition.d.ts.map +0 -1
- package/dist/generated/models/field-condition.js +0 -61
- package/src/generated/models/field-condition-action.ts +0 -60
- package/src/generated/models/field-condition-operation.ts +0 -53
- package/src/generated/models/field-condition.ts +0 -116
|
@@ -1,32 +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
|
-
*/
|
|
16
|
-
export declare const FieldConditionAction: {
|
|
17
|
-
readonly equal: "equal";
|
|
18
|
-
readonly not_equal: "not_equal";
|
|
19
|
-
readonly contains: "contains";
|
|
20
|
-
readonly not_contains: "not_contains";
|
|
21
|
-
readonly empty: "empty";
|
|
22
|
-
readonly not_empty: "not_empty";
|
|
23
|
-
readonly greater_than: "greater_than";
|
|
24
|
-
readonly less_than: "less_than";
|
|
25
|
-
};
|
|
26
|
-
export type FieldConditionAction = typeof FieldConditionAction[keyof typeof FieldConditionAction];
|
|
27
|
-
export declare function instanceOfFieldConditionAction(value: any): boolean;
|
|
28
|
-
export declare function FieldConditionActionFromJSON(json: any): FieldConditionAction;
|
|
29
|
-
export declare function FieldConditionActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldConditionAction;
|
|
30
|
-
export declare function FieldConditionActionToJSON(value?: FieldConditionAction | null): any;
|
|
31
|
-
export declare function FieldConditionActionToJSONTyped(value: any, ignoreDiscriminator: boolean): FieldConditionAction;
|
|
32
|
-
//# sourceMappingURL=field-condition-action.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-condition-action.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition-action.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;CASvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAGlG,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASlE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE/G;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,GAAG,CAEnF;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE9G"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* ManageSpace API
|
|
7
|
-
* ManageSpace API Documentation
|
|
8
|
-
*
|
|
9
|
-
* The version of the OpenAPI document: 1.0.0
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
-
* https://openapi-generator.tech
|
|
14
|
-
* Do not edit the class manually.
|
|
15
|
-
*/
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.FieldConditionAction = void 0;
|
|
18
|
-
exports.instanceOfFieldConditionAction = instanceOfFieldConditionAction;
|
|
19
|
-
exports.FieldConditionActionFromJSON = FieldConditionActionFromJSON;
|
|
20
|
-
exports.FieldConditionActionFromJSONTyped = FieldConditionActionFromJSONTyped;
|
|
21
|
-
exports.FieldConditionActionToJSON = FieldConditionActionToJSON;
|
|
22
|
-
exports.FieldConditionActionToJSONTyped = FieldConditionActionToJSONTyped;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
*/
|
|
27
|
-
exports.FieldConditionAction = {
|
|
28
|
-
equal: 'equal',
|
|
29
|
-
not_equal: 'not_equal',
|
|
30
|
-
contains: 'contains',
|
|
31
|
-
not_contains: 'not_contains',
|
|
32
|
-
empty: 'empty',
|
|
33
|
-
not_empty: 'not_empty',
|
|
34
|
-
greater_than: 'greater_than',
|
|
35
|
-
less_than: 'less_than'
|
|
36
|
-
};
|
|
37
|
-
function instanceOfFieldConditionAction(value) {
|
|
38
|
-
for (const key in exports.FieldConditionAction) {
|
|
39
|
-
if (Object.prototype.hasOwnProperty.call(exports.FieldConditionAction, key)) {
|
|
40
|
-
if (exports.FieldConditionAction[key] === value) {
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
function FieldConditionActionFromJSON(json) {
|
|
48
|
-
return FieldConditionActionFromJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
function FieldConditionActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
function FieldConditionActionToJSON(value) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
function FieldConditionActionToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
@@ -1,25 +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
|
-
* Logical connector with the previous condition in the array. Omit for AND (the default); set `or` for OR.
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const FieldConditionOperation: {
|
|
17
|
-
readonly or: "or";
|
|
18
|
-
};
|
|
19
|
-
export type FieldConditionOperation = typeof FieldConditionOperation[keyof typeof FieldConditionOperation];
|
|
20
|
-
export declare function instanceOfFieldConditionOperation(value: any): boolean;
|
|
21
|
-
export declare function FieldConditionOperationFromJSON(json: any): FieldConditionOperation;
|
|
22
|
-
export declare function FieldConditionOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldConditionOperation;
|
|
23
|
-
export declare function FieldConditionOperationToJSON(value?: FieldConditionOperation | null): any;
|
|
24
|
-
export declare function FieldConditionOperationToJSONTyped(value: any, ignoreDiscriminator: boolean): FieldConditionOperation;
|
|
25
|
-
//# sourceMappingURL=field-condition-operation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-condition-operation.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition-operation.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;CAE1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAG3G,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASrE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAErH;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,GAAG,GAAG,CAEzF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAEpH"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* ManageSpace API
|
|
7
|
-
* ManageSpace API Documentation
|
|
8
|
-
*
|
|
9
|
-
* The version of the OpenAPI document: 1.0.0
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
-
* https://openapi-generator.tech
|
|
14
|
-
* Do not edit the class manually.
|
|
15
|
-
*/
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.FieldConditionOperation = void 0;
|
|
18
|
-
exports.instanceOfFieldConditionOperation = instanceOfFieldConditionOperation;
|
|
19
|
-
exports.FieldConditionOperationFromJSON = FieldConditionOperationFromJSON;
|
|
20
|
-
exports.FieldConditionOperationFromJSONTyped = FieldConditionOperationFromJSONTyped;
|
|
21
|
-
exports.FieldConditionOperationToJSON = FieldConditionOperationToJSON;
|
|
22
|
-
exports.FieldConditionOperationToJSONTyped = FieldConditionOperationToJSONTyped;
|
|
23
|
-
/**
|
|
24
|
-
* Logical connector with the previous condition in the array. Omit for AND (the default); set `or` for OR.
|
|
25
|
-
* @export
|
|
26
|
-
*/
|
|
27
|
-
exports.FieldConditionOperation = {
|
|
28
|
-
or: 'or'
|
|
29
|
-
};
|
|
30
|
-
function instanceOfFieldConditionOperation(value) {
|
|
31
|
-
for (const key in exports.FieldConditionOperation) {
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(exports.FieldConditionOperation, key)) {
|
|
33
|
-
if (exports.FieldConditionOperation[key] === value) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
function FieldConditionOperationFromJSON(json) {
|
|
41
|
-
return FieldConditionOperationFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function FieldConditionOperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
function FieldConditionOperationToJSON(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
function FieldConditionOperationToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
@@ -1,59 +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 { FieldConditionOperation } from './field-condition-operation';
|
|
13
|
-
import type { FieldConditionAction } from './field-condition-action';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface FieldCondition
|
|
18
|
-
*/
|
|
19
|
-
export interface FieldCondition {
|
|
20
|
-
/**
|
|
21
|
-
* UUID of the field to evaluate. Preferred — DocuSeal stores conditions by UUID.
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof FieldCondition
|
|
24
|
-
*/
|
|
25
|
-
fieldUuid?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Name of the field to evaluate. Fallback when the UUID is not yet known.
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof FieldCondition
|
|
30
|
-
*/
|
|
31
|
-
fieldName?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The value to compare against. Optional for `empty` / `not_empty` actions.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof FieldCondition
|
|
36
|
-
*/
|
|
37
|
-
value?: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {FieldConditionAction}
|
|
41
|
-
* @memberof FieldCondition
|
|
42
|
-
*/
|
|
43
|
-
action: FieldConditionAction;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {FieldConditionOperation}
|
|
47
|
-
* @memberof FieldCondition
|
|
48
|
-
*/
|
|
49
|
-
operation?: FieldConditionOperation;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the FieldCondition interface.
|
|
53
|
-
*/
|
|
54
|
-
export declare function instanceOfFieldCondition(value: object): value is FieldCondition;
|
|
55
|
-
export declare function FieldConditionFromJSON(json: any): FieldCondition;
|
|
56
|
-
export declare function FieldConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldCondition;
|
|
57
|
-
export declare function FieldConditionToJSON(json: any): FieldCondition;
|
|
58
|
-
export declare function FieldConditionToJSONTyped(value?: FieldCondition | null, ignoreDiscriminator?: boolean): any;
|
|
59
|
-
//# sourceMappingURL=field-condition.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-condition.d.ts","sourceRoot":"","sources":["../../../src/generated/models/field-condition.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAO3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,oBAAoB,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACvC;AAID;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAYnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAalH"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* ManageSpace API
|
|
7
|
-
* ManageSpace API Documentation
|
|
8
|
-
*
|
|
9
|
-
* The version of the OpenAPI document: 1.0.0
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
-
* https://openapi-generator.tech
|
|
14
|
-
* Do not edit the class manually.
|
|
15
|
-
*/
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.instanceOfFieldCondition = instanceOfFieldCondition;
|
|
18
|
-
exports.FieldConditionFromJSON = FieldConditionFromJSON;
|
|
19
|
-
exports.FieldConditionFromJSONTyped = FieldConditionFromJSONTyped;
|
|
20
|
-
exports.FieldConditionToJSON = FieldConditionToJSON;
|
|
21
|
-
exports.FieldConditionToJSONTyped = FieldConditionToJSONTyped;
|
|
22
|
-
const field_condition_operation_1 = require("./field-condition-operation");
|
|
23
|
-
const field_condition_action_1 = require("./field-condition-action");
|
|
24
|
-
/**
|
|
25
|
-
* Check if a given object implements the FieldCondition interface.
|
|
26
|
-
*/
|
|
27
|
-
function instanceOfFieldCondition(value) {
|
|
28
|
-
if (!('action' in value) || value['action'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
function FieldConditionFromJSON(json) {
|
|
33
|
-
return FieldConditionFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
function FieldConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (json == null) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'fieldUuid': json['field_uuid'] == null ? undefined : json['field_uuid'],
|
|
41
|
-
'fieldName': json['field_name'] == null ? undefined : json['field_name'],
|
|
42
|
-
'value': json['value'] == null ? undefined : json['value'],
|
|
43
|
-
'action': (0, field_condition_action_1.FieldConditionActionFromJSON)(json['action']),
|
|
44
|
-
'operation': json['operation'] == null ? undefined : (0, field_condition_operation_1.FieldConditionOperationFromJSON)(json['operation']),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function FieldConditionToJSON(json) {
|
|
48
|
-
return FieldConditionToJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
function FieldConditionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'field_uuid': value['fieldUuid'],
|
|
56
|
-
'field_name': value['fieldName'],
|
|
57
|
-
'value': value['value'],
|
|
58
|
-
'action': (0, field_condition_action_1.FieldConditionActionToJSON)(value['action']),
|
|
59
|
-
'operation': (0, field_condition_operation_1.FieldConditionOperationToJSON)(value['operation']),
|
|
60
|
-
};
|
|
61
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
*/
|
|
21
|
-
export const FieldConditionAction = {
|
|
22
|
-
equal: 'equal',
|
|
23
|
-
not_equal: 'not_equal',
|
|
24
|
-
contains: 'contains',
|
|
25
|
-
not_contains: 'not_contains',
|
|
26
|
-
empty: 'empty',
|
|
27
|
-
not_empty: 'not_empty',
|
|
28
|
-
greater_than: 'greater_than',
|
|
29
|
-
less_than: 'less_than'
|
|
30
|
-
} as const;
|
|
31
|
-
export type FieldConditionAction = typeof FieldConditionAction[keyof typeof FieldConditionAction];
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export function instanceOfFieldConditionAction(value: any): boolean {
|
|
35
|
-
for (const key in FieldConditionAction) {
|
|
36
|
-
if (Object.prototype.hasOwnProperty.call(FieldConditionAction, key)) {
|
|
37
|
-
if (FieldConditionAction[key as keyof typeof FieldConditionAction] === value) {
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function FieldConditionActionFromJSON(json: any): FieldConditionAction {
|
|
46
|
-
return FieldConditionActionFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function FieldConditionActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldConditionAction {
|
|
50
|
-
return json as FieldConditionAction;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function FieldConditionActionToJSON(value?: FieldConditionAction | null): any {
|
|
54
|
-
return value as any;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function FieldConditionActionToJSONTyped(value: any, ignoreDiscriminator: boolean): FieldConditionAction {
|
|
58
|
-
return value as FieldConditionAction;
|
|
59
|
-
}
|
|
60
|
-
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Logical connector with the previous condition in the array. Omit for AND (the default); set `or` for OR.
|
|
19
|
-
* @export
|
|
20
|
-
*/
|
|
21
|
-
export const FieldConditionOperation = {
|
|
22
|
-
or: 'or'
|
|
23
|
-
} as const;
|
|
24
|
-
export type FieldConditionOperation = typeof FieldConditionOperation[keyof typeof FieldConditionOperation];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export function instanceOfFieldConditionOperation(value: any): boolean {
|
|
28
|
-
for (const key in FieldConditionOperation) {
|
|
29
|
-
if (Object.prototype.hasOwnProperty.call(FieldConditionOperation, key)) {
|
|
30
|
-
if (FieldConditionOperation[key as keyof typeof FieldConditionOperation] === value) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function FieldConditionOperationFromJSON(json: any): FieldConditionOperation {
|
|
39
|
-
return FieldConditionOperationFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function FieldConditionOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldConditionOperation {
|
|
43
|
-
return json as FieldConditionOperation;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function FieldConditionOperationToJSON(value?: FieldConditionOperation | null): any {
|
|
47
|
-
return value as any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function FieldConditionOperationToJSONTyped(value: any, ignoreDiscriminator: boolean): FieldConditionOperation {
|
|
51
|
-
return value as FieldConditionOperation;
|
|
52
|
-
}
|
|
53
|
-
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
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
|
-
|
|
16
|
-
import { mapValues } from '../runtime';
|
|
17
|
-
import type { FieldConditionOperation } from './field-condition-operation';
|
|
18
|
-
import {
|
|
19
|
-
FieldConditionOperationFromJSON,
|
|
20
|
-
FieldConditionOperationFromJSONTyped,
|
|
21
|
-
FieldConditionOperationToJSON,
|
|
22
|
-
FieldConditionOperationToJSONTyped,
|
|
23
|
-
} from './field-condition-operation';
|
|
24
|
-
import type { FieldConditionAction } from './field-condition-action';
|
|
25
|
-
import {
|
|
26
|
-
FieldConditionActionFromJSON,
|
|
27
|
-
FieldConditionActionFromJSONTyped,
|
|
28
|
-
FieldConditionActionToJSON,
|
|
29
|
-
FieldConditionActionToJSONTyped,
|
|
30
|
-
} from './field-condition-action';
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @export
|
|
35
|
-
* @interface FieldCondition
|
|
36
|
-
*/
|
|
37
|
-
export interface FieldCondition {
|
|
38
|
-
/**
|
|
39
|
-
* UUID of the field to evaluate. Preferred — DocuSeal stores conditions by UUID.
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof FieldCondition
|
|
42
|
-
*/
|
|
43
|
-
fieldUuid?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Name of the field to evaluate. Fallback when the UUID is not yet known.
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof FieldCondition
|
|
48
|
-
*/
|
|
49
|
-
fieldName?: string;
|
|
50
|
-
/**
|
|
51
|
-
* The value to compare against. Optional for `empty` / `not_empty` actions.
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof FieldCondition
|
|
54
|
-
*/
|
|
55
|
-
value?: string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {FieldConditionAction}
|
|
59
|
-
* @memberof FieldCondition
|
|
60
|
-
*/
|
|
61
|
-
action: FieldConditionAction;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {FieldConditionOperation}
|
|
65
|
-
* @memberof FieldCondition
|
|
66
|
-
*/
|
|
67
|
-
operation?: FieldConditionOperation;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Check if a given object implements the FieldCondition interface.
|
|
74
|
-
*/
|
|
75
|
-
export function instanceOfFieldCondition(value: object): value is FieldCondition {
|
|
76
|
-
if (!('action' in value) || value['action'] === undefined) return false;
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function FieldConditionFromJSON(json: any): FieldCondition {
|
|
81
|
-
return FieldConditionFromJSONTyped(json, false);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function FieldConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldCondition {
|
|
85
|
-
if (json == null) {
|
|
86
|
-
return json;
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
|
|
90
|
-
'fieldUuid': json['field_uuid'] == null ? undefined : json['field_uuid'],
|
|
91
|
-
'fieldName': json['field_name'] == null ? undefined : json['field_name'],
|
|
92
|
-
'value': json['value'] == null ? undefined : json['value'],
|
|
93
|
-
'action': FieldConditionActionFromJSON(json['action']),
|
|
94
|
-
'operation': json['operation'] == null ? undefined : FieldConditionOperationFromJSON(json['operation']),
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export function FieldConditionToJSON(json: any): FieldCondition {
|
|
99
|
-
return FieldConditionToJSONTyped(json, false);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export function FieldConditionToJSONTyped(value?: FieldCondition | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
-
if (value == null) {
|
|
104
|
-
return value;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return {
|
|
108
|
-
|
|
109
|
-
'field_uuid': value['fieldUuid'],
|
|
110
|
-
'field_name': value['fieldName'],
|
|
111
|
-
'value': value['value'],
|
|
112
|
-
'action': FieldConditionActionToJSON(value['action']),
|
|
113
|
-
'operation': FieldConditionOperationToJSON(value['operation']),
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
|