@managespace/sdk 0.1.192 → 0.1.193

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.
@@ -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
-