@silkline/arena 1.0.0 → 1.1.1
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/CHANGELOG.md +30 -0
- package/LICENSE +1 -1
- package/README.md +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +6 -3
- package/client.js.map +1 -1
- package/client.mjs +6 -3
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/changes/implementationtasks/files.d.mts +2 -2
- package/resources/changes/implementationtasks/files.d.ts +2 -2
- package/resources/changes/implementationtasks/implementationtasks.d.mts +5 -5
- package/resources/changes/implementationtasks/implementationtasks.d.ts +5 -5
- package/resources/changes/implementationtasks/notes.d.mts +9 -9
- package/resources/changes/implementationtasks/notes.d.ts +9 -9
- package/resources/changes/items.d.mts +10 -10
- package/resources/changes/items.d.ts +10 -10
- package/resources/files/markups.d.mts +5 -5
- package/resources/files/markups.d.ts +5 -5
- package/resources/imports/runs.d.mts +11 -11
- package/resources/imports/runs.d.ts +11 -11
- package/resources/items/bom/bom.d.mts +9 -9
- package/resources/items/bom/bom.d.ts +9 -9
- package/resources/items/bom/substitutes.d.mts +10 -10
- package/resources/items/bom/substitutes.d.ts +10 -10
- package/resources/items/compliance.d.mts +5 -5
- package/resources/items/compliance.d.ts +5 -5
- package/resources/items/files/content.d.mts +2 -2
- package/resources/items/files/content.d.ts +2 -2
- package/resources/items/files/files.d.mts +3 -3
- package/resources/items/files/files.d.ts +3 -3
- package/resources/items/items_.d.mts +2 -2
- package/resources/items/items_.d.ts +2 -2
- package/resources/items/sourcing.d.mts +9 -9
- package/resources/items/sourcing.d.ts +9 -9
- package/resources/login.d.mts +8 -8
- package/resources/login.d.ts +8 -8
- package/resources/outboundevents/events.d.mts +11 -11
- package/resources/outboundevents/events.d.ts +11 -11
- package/resources/outboundintegrations/events/events.d.mts +12 -12
- package/resources/outboundintegrations/events/events.d.ts +12 -12
- package/resources/outboundintegrations/events/items.d.mts +7 -7
- package/resources/outboundintegrations/events/items.d.ts +7 -7
- package/resources/qualityprocesses/steps/affected.d.mts +12 -12
- package/resources/qualityprocesses/steps/affected.d.ts +12 -12
- package/resources/qualityprocesses/steps/decisions.d.mts +8 -8
- package/resources/qualityprocesses/steps/decisions.d.ts +8 -8
- package/resources/qualityprocesses/steps/steps.d.mts +6 -6
- package/resources/qualityprocesses/steps/steps.d.ts +6 -6
- package/resources/requests/evaluationissues/evaluationissues.d.mts +3 -3
- package/resources/requests/evaluationissues/evaluationissues.d.ts +3 -3
- package/resources/requests/evaluationissues/responses.d.mts +5 -5
- package/resources/requests/evaluationissues/responses.d.ts +5 -5
- package/resources/requests/items.d.mts +2 -2
- package/resources/requests/items.d.ts +2 -2
- package/resources/settings/accountusers/employees.d.mts +18 -18
- package/resources/settings/accountusers/employees.d.ts +18 -18
- package/resources/settings/accountusers/machines.d.mts +9 -9
- package/resources/settings/accountusers/machines.d.ts +9 -9
- package/resources/settings/categories/attributes.d.mts +7 -7
- package/resources/settings/categories/attributes.d.ts +7 -7
- package/resources/settings/items/numberformats/fields.d.mts +9 -9
- package/resources/settings/items/numberformats/fields.d.ts +9 -9
- package/resources/settings/usergroups/usergroups.d.mts +5 -5
- package/resources/settings/usergroups/usergroups.d.ts +5 -5
- package/resources/supplieritems/compliance.d.mts +5 -5
- package/resources/supplieritems/compliance.d.ts +5 -5
- package/resources/supplieritems/files.d.mts +2 -2
- package/resources/supplieritems/files.d.ts +2 -2
- package/resources/suppliers/addresses.d.mts +3 -3
- package/resources/suppliers/addresses.d.ts +3 -3
- package/resources/suppliers/phonenumbers.d.mts +5 -5
- package/resources/suppliers/phonenumbers.d.ts +5 -5
- package/resources/trainingplans/users.d.mts +2 -2
- package/resources/trainingplans/users.d.ts +2 -2
- package/src/client.ts +10 -10
- package/src/internal/parse.ts +6 -0
- package/src/resources/changes/implementationtasks/files.ts +2 -2
- package/src/resources/changes/implementationtasks/implementationtasks.ts +5 -5
- package/src/resources/changes/implementationtasks/notes.ts +9 -9
- package/src/resources/changes/items.ts +10 -10
- package/src/resources/files/markups.ts +5 -5
- package/src/resources/imports/runs.ts +11 -11
- package/src/resources/items/bom/bom.ts +9 -9
- package/src/resources/items/bom/substitutes.ts +10 -10
- package/src/resources/items/compliance.ts +5 -5
- package/src/resources/items/files/content.ts +2 -2
- package/src/resources/items/files/files.ts +3 -3
- package/src/resources/items/items_.ts +2 -2
- package/src/resources/items/sourcing.ts +9 -9
- package/src/resources/login.ts +8 -8
- package/src/resources/outboundevents/events.ts +11 -11
- package/src/resources/outboundintegrations/events/events.ts +12 -12
- package/src/resources/outboundintegrations/events/items.ts +7 -7
- package/src/resources/qualityprocesses/steps/affected.ts +12 -12
- package/src/resources/qualityprocesses/steps/decisions.ts +8 -8
- package/src/resources/qualityprocesses/steps/steps.ts +6 -6
- package/src/resources/requests/evaluationissues/evaluationissues.ts +3 -3
- package/src/resources/requests/evaluationissues/responses.ts +5 -5
- package/src/resources/requests/items.ts +2 -2
- package/src/resources/settings/accountusers/employees.ts +18 -18
- package/src/resources/settings/accountusers/machines.ts +9 -9
- package/src/resources/settings/categories/attributes.ts +7 -7
- package/src/resources/settings/items/numberformats/fields.ts +9 -9
- package/src/resources/settings/usergroups/usergroups.ts +5 -5
- package/src/resources/supplieritems/compliance.ts +5 -5
- package/src/resources/supplieritems/files.ts +2 -2
- package/src/resources/suppliers/addresses.ts +3 -3
- package/src/resources/suppliers/phonenumbers.ts +5 -5
- package/src/resources/trainingplans/users.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -69,39 +69,39 @@ export interface MachineCreateParams {
|
|
|
69
69
|
}
|
|
70
70
|
export interface MachineUpdateParams {
|
|
71
71
|
/**
|
|
72
|
-
* Query param
|
|
72
|
+
* Query param
|
|
73
73
|
*/
|
|
74
74
|
setnull?: boolean;
|
|
75
75
|
/**
|
|
76
|
-
* Body param
|
|
76
|
+
* Body param
|
|
77
77
|
*/
|
|
78
78
|
applicationLanguage?: string;
|
|
79
79
|
/**
|
|
80
|
-
* Body param
|
|
80
|
+
* Body param
|
|
81
81
|
*/
|
|
82
82
|
email?: string;
|
|
83
83
|
/**
|
|
84
|
-
* Body param
|
|
84
|
+
* Body param
|
|
85
85
|
*/
|
|
86
86
|
enabled?: boolean;
|
|
87
87
|
/**
|
|
88
|
-
* Body param
|
|
88
|
+
* Body param
|
|
89
89
|
*/
|
|
90
90
|
isAdministrator?: boolean;
|
|
91
91
|
/**
|
|
92
|
-
* Body param
|
|
92
|
+
* Body param
|
|
93
93
|
*/
|
|
94
94
|
loginConflictResolution?: string;
|
|
95
95
|
/**
|
|
96
|
-
* Body param
|
|
96
|
+
* Body param
|
|
97
97
|
*/
|
|
98
98
|
name?: string;
|
|
99
99
|
/**
|
|
100
|
-
* Body param
|
|
100
|
+
* Body param
|
|
101
101
|
*/
|
|
102
102
|
notes?: string;
|
|
103
103
|
/**
|
|
104
|
-
* Body param
|
|
104
|
+
* Body param
|
|
105
105
|
*/
|
|
106
106
|
owner?: AccountUserMinimalRequest;
|
|
107
107
|
}
|
|
@@ -69,39 +69,39 @@ export interface MachineCreateParams {
|
|
|
69
69
|
}
|
|
70
70
|
export interface MachineUpdateParams {
|
|
71
71
|
/**
|
|
72
|
-
* Query param
|
|
72
|
+
* Query param
|
|
73
73
|
*/
|
|
74
74
|
setnull?: boolean;
|
|
75
75
|
/**
|
|
76
|
-
* Body param
|
|
76
|
+
* Body param
|
|
77
77
|
*/
|
|
78
78
|
applicationLanguage?: string;
|
|
79
79
|
/**
|
|
80
|
-
* Body param
|
|
80
|
+
* Body param
|
|
81
81
|
*/
|
|
82
82
|
email?: string;
|
|
83
83
|
/**
|
|
84
|
-
* Body param
|
|
84
|
+
* Body param
|
|
85
85
|
*/
|
|
86
86
|
enabled?: boolean;
|
|
87
87
|
/**
|
|
88
|
-
* Body param
|
|
88
|
+
* Body param
|
|
89
89
|
*/
|
|
90
90
|
isAdministrator?: boolean;
|
|
91
91
|
/**
|
|
92
|
-
* Body param
|
|
92
|
+
* Body param
|
|
93
93
|
*/
|
|
94
94
|
loginConflictResolution?: string;
|
|
95
95
|
/**
|
|
96
|
-
* Body param
|
|
96
|
+
* Body param
|
|
97
97
|
*/
|
|
98
98
|
name?: string;
|
|
99
99
|
/**
|
|
100
|
-
* Body param
|
|
100
|
+
* Body param
|
|
101
101
|
*/
|
|
102
102
|
notes?: string;
|
|
103
103
|
/**
|
|
104
|
-
* Body param
|
|
104
|
+
* Body param
|
|
105
105
|
*/
|
|
106
106
|
owner?: AccountUserMinimalRequest;
|
|
107
107
|
}
|
|
@@ -62,31 +62,31 @@ export interface AttributeRetrieveParams {
|
|
|
62
62
|
}
|
|
63
63
|
export interface AttributeListParams {
|
|
64
64
|
/**
|
|
65
|
-
* Path param
|
|
65
|
+
* Path param
|
|
66
66
|
*/
|
|
67
67
|
objectType: 'items' | 'changes' | 'requests';
|
|
68
68
|
/**
|
|
69
|
-
* Query param
|
|
69
|
+
* Query param
|
|
70
70
|
*/
|
|
71
71
|
action?: string;
|
|
72
72
|
/**
|
|
73
|
-
* Query param
|
|
73
|
+
* Query param
|
|
74
74
|
*/
|
|
75
75
|
creatableOnly?: boolean;
|
|
76
76
|
/**
|
|
77
|
-
* Query param
|
|
77
|
+
* Query param
|
|
78
78
|
*/
|
|
79
79
|
editableOnly?: boolean;
|
|
80
80
|
/**
|
|
81
|
-
* Query param
|
|
81
|
+
* Query param
|
|
82
82
|
*/
|
|
83
83
|
includePossibleValues?: boolean;
|
|
84
84
|
/**
|
|
85
|
-
* Query param
|
|
85
|
+
* Query param
|
|
86
86
|
*/
|
|
87
87
|
searchableOnly?: boolean;
|
|
88
88
|
/**
|
|
89
|
-
* Query param
|
|
89
|
+
* Query param
|
|
90
90
|
*/
|
|
91
91
|
user?: string;
|
|
92
92
|
}
|
|
@@ -62,31 +62,31 @@ export interface AttributeRetrieveParams {
|
|
|
62
62
|
}
|
|
63
63
|
export interface AttributeListParams {
|
|
64
64
|
/**
|
|
65
|
-
* Path param
|
|
65
|
+
* Path param
|
|
66
66
|
*/
|
|
67
67
|
objectType: 'items' | 'changes' | 'requests';
|
|
68
68
|
/**
|
|
69
|
-
* Query param
|
|
69
|
+
* Query param
|
|
70
70
|
*/
|
|
71
71
|
action?: string;
|
|
72
72
|
/**
|
|
73
|
-
* Query param
|
|
73
|
+
* Query param
|
|
74
74
|
*/
|
|
75
75
|
creatableOnly?: boolean;
|
|
76
76
|
/**
|
|
77
|
-
* Query param
|
|
77
|
+
* Query param
|
|
78
78
|
*/
|
|
79
79
|
editableOnly?: boolean;
|
|
80
80
|
/**
|
|
81
|
-
* Query param
|
|
81
|
+
* Query param
|
|
82
82
|
*/
|
|
83
83
|
includePossibleValues?: boolean;
|
|
84
84
|
/**
|
|
85
|
-
* Query param
|
|
85
|
+
* Query param
|
|
86
86
|
*/
|
|
87
87
|
searchableOnly?: boolean;
|
|
88
88
|
/**
|
|
89
|
-
* Query param
|
|
89
|
+
* Query param
|
|
90
90
|
*/
|
|
91
91
|
user?: string;
|
|
92
92
|
}
|
|
@@ -74,39 +74,39 @@ export interface FieldRetrieveParams {
|
|
|
74
74
|
}
|
|
75
75
|
export interface FieldUpdateParams {
|
|
76
76
|
/**
|
|
77
|
-
* Path param
|
|
77
|
+
* Path param
|
|
78
78
|
*/
|
|
79
79
|
formatGuid: string;
|
|
80
80
|
/**
|
|
81
|
-
* Body param
|
|
81
|
+
* Body param
|
|
82
82
|
*/
|
|
83
83
|
maxLength?: number;
|
|
84
84
|
/**
|
|
85
|
-
* Body param
|
|
85
|
+
* Body param
|
|
86
86
|
*/
|
|
87
87
|
maxSeqLength?: number;
|
|
88
88
|
/**
|
|
89
|
-
* Body param
|
|
89
|
+
* Body param
|
|
90
90
|
*/
|
|
91
91
|
name?: string;
|
|
92
92
|
/**
|
|
93
|
-
* Body param
|
|
93
|
+
* Body param
|
|
94
94
|
*/
|
|
95
95
|
order?: number;
|
|
96
96
|
/**
|
|
97
|
-
* Body param
|
|
97
|
+
* Body param
|
|
98
98
|
*/
|
|
99
99
|
possibleValues?: Array<NumberFormatPossibleValueCreate>;
|
|
100
100
|
/**
|
|
101
|
-
* Body param
|
|
101
|
+
* Body param
|
|
102
102
|
*/
|
|
103
103
|
type?: 'FREE_TEXT' | 'DELIMITER' | 'VALUE_LIST' | 'AUTO_SEQUENCE';
|
|
104
104
|
/**
|
|
105
|
-
* Body param
|
|
105
|
+
* Body param
|
|
106
106
|
*/
|
|
107
107
|
value?: string;
|
|
108
108
|
/**
|
|
109
|
-
* Body param
|
|
109
|
+
* Body param
|
|
110
110
|
*/
|
|
111
111
|
zeroPadding?: boolean;
|
|
112
112
|
}
|
|
@@ -74,39 +74,39 @@ export interface FieldRetrieveParams {
|
|
|
74
74
|
}
|
|
75
75
|
export interface FieldUpdateParams {
|
|
76
76
|
/**
|
|
77
|
-
* Path param
|
|
77
|
+
* Path param
|
|
78
78
|
*/
|
|
79
79
|
formatGuid: string;
|
|
80
80
|
/**
|
|
81
|
-
* Body param
|
|
81
|
+
* Body param
|
|
82
82
|
*/
|
|
83
83
|
maxLength?: number;
|
|
84
84
|
/**
|
|
85
|
-
* Body param
|
|
85
|
+
* Body param
|
|
86
86
|
*/
|
|
87
87
|
maxSeqLength?: number;
|
|
88
88
|
/**
|
|
89
|
-
* Body param
|
|
89
|
+
* Body param
|
|
90
90
|
*/
|
|
91
91
|
name?: string;
|
|
92
92
|
/**
|
|
93
|
-
* Body param
|
|
93
|
+
* Body param
|
|
94
94
|
*/
|
|
95
95
|
order?: number;
|
|
96
96
|
/**
|
|
97
|
-
* Body param
|
|
97
|
+
* Body param
|
|
98
98
|
*/
|
|
99
99
|
possibleValues?: Array<NumberFormatPossibleValueCreate>;
|
|
100
100
|
/**
|
|
101
|
-
* Body param
|
|
101
|
+
* Body param
|
|
102
102
|
*/
|
|
103
103
|
type?: 'FREE_TEXT' | 'DELIMITER' | 'VALUE_LIST' | 'AUTO_SEQUENCE';
|
|
104
104
|
/**
|
|
105
|
-
* Body param
|
|
105
|
+
* Body param
|
|
106
106
|
*/
|
|
107
107
|
value?: string;
|
|
108
108
|
/**
|
|
109
|
-
* Body param
|
|
109
|
+
* Body param
|
|
110
110
|
*/
|
|
111
111
|
zeroPadding?: boolean;
|
|
112
112
|
}
|
|
@@ -61,23 +61,23 @@ export interface UsergroupCreateParams {
|
|
|
61
61
|
}
|
|
62
62
|
export interface UsergroupUpdateParams {
|
|
63
63
|
/**
|
|
64
|
-
* Query param
|
|
64
|
+
* Query param
|
|
65
65
|
*/
|
|
66
66
|
setnull?: boolean;
|
|
67
67
|
/**
|
|
68
|
-
* Body param
|
|
68
|
+
* Body param
|
|
69
69
|
*/
|
|
70
70
|
assignability?: Array<string>;
|
|
71
71
|
/**
|
|
72
|
-
* Body param
|
|
72
|
+
* Body param
|
|
73
73
|
*/
|
|
74
74
|
description?: string;
|
|
75
75
|
/**
|
|
76
|
-
* Body param
|
|
76
|
+
* Body param
|
|
77
77
|
*/
|
|
78
78
|
enabled?: boolean;
|
|
79
79
|
/**
|
|
80
|
-
* Body param
|
|
80
|
+
* Body param
|
|
81
81
|
*/
|
|
82
82
|
name?: string;
|
|
83
83
|
}
|
|
@@ -61,23 +61,23 @@ export interface UsergroupCreateParams {
|
|
|
61
61
|
}
|
|
62
62
|
export interface UsergroupUpdateParams {
|
|
63
63
|
/**
|
|
64
|
-
* Query param
|
|
64
|
+
* Query param
|
|
65
65
|
*/
|
|
66
66
|
setnull?: boolean;
|
|
67
67
|
/**
|
|
68
|
-
* Body param
|
|
68
|
+
* Body param
|
|
69
69
|
*/
|
|
70
70
|
assignability?: Array<string>;
|
|
71
71
|
/**
|
|
72
|
-
* Body param
|
|
72
|
+
* Body param
|
|
73
73
|
*/
|
|
74
74
|
description?: string;
|
|
75
75
|
/**
|
|
76
|
-
* Body param
|
|
76
|
+
* Body param
|
|
77
77
|
*/
|
|
78
78
|
enabled?: boolean;
|
|
79
79
|
/**
|
|
80
|
-
* Body param
|
|
80
|
+
* Body param
|
|
81
81
|
*/
|
|
82
82
|
name?: string;
|
|
83
83
|
}
|
|
@@ -73,23 +73,23 @@ export interface ComplianceRetrieveParams {
|
|
|
73
73
|
}
|
|
74
74
|
export interface ComplianceUpdateParams {
|
|
75
75
|
/**
|
|
76
|
-
* Path param
|
|
76
|
+
* Path param
|
|
77
77
|
*/
|
|
78
78
|
supplierItemGuid: string;
|
|
79
79
|
/**
|
|
80
|
-
* Body param
|
|
80
|
+
* Body param
|
|
81
81
|
*/
|
|
82
82
|
evidenceType?: string;
|
|
83
83
|
/**
|
|
84
|
-
* Body param
|
|
84
|
+
* Body param
|
|
85
85
|
*/
|
|
86
86
|
mark?: string;
|
|
87
87
|
/**
|
|
88
|
-
* Body param
|
|
88
|
+
* Body param
|
|
89
89
|
*/
|
|
90
90
|
rationale?: string;
|
|
91
91
|
/**
|
|
92
|
-
* Body param
|
|
92
|
+
* Body param
|
|
93
93
|
*/
|
|
94
94
|
status?: string;
|
|
95
95
|
}
|
|
@@ -73,23 +73,23 @@ export interface ComplianceRetrieveParams {
|
|
|
73
73
|
}
|
|
74
74
|
export interface ComplianceUpdateParams {
|
|
75
75
|
/**
|
|
76
|
-
* Path param
|
|
76
|
+
* Path param
|
|
77
77
|
*/
|
|
78
78
|
supplierItemGuid: string;
|
|
79
79
|
/**
|
|
80
|
-
* Body param
|
|
80
|
+
* Body param
|
|
81
81
|
*/
|
|
82
82
|
evidenceType?: string;
|
|
83
83
|
/**
|
|
84
|
-
* Body param
|
|
84
|
+
* Body param
|
|
85
85
|
*/
|
|
86
86
|
mark?: string;
|
|
87
87
|
/**
|
|
88
|
-
* Body param
|
|
88
|
+
* Body param
|
|
89
89
|
*/
|
|
90
90
|
rationale?: string;
|
|
91
91
|
/**
|
|
92
|
-
* Body param
|
|
92
|
+
* Body param
|
|
93
93
|
*/
|
|
94
94
|
status?: string;
|
|
95
95
|
}
|
|
@@ -99,11 +99,11 @@ export interface FileRetrieveContentParams {
|
|
|
99
99
|
}
|
|
100
100
|
export interface FileUpdateMetadataParams {
|
|
101
101
|
/**
|
|
102
|
-
* Path param
|
|
102
|
+
* Path param
|
|
103
103
|
*/
|
|
104
104
|
supplierItemGuid: string;
|
|
105
105
|
/**
|
|
106
|
-
* Body param
|
|
106
|
+
* Body param
|
|
107
107
|
*/
|
|
108
108
|
primary?: boolean;
|
|
109
109
|
}
|
|
@@ -99,11 +99,11 @@ export interface FileRetrieveContentParams {
|
|
|
99
99
|
}
|
|
100
100
|
export interface FileUpdateMetadataParams {
|
|
101
101
|
/**
|
|
102
|
-
* Path param
|
|
102
|
+
* Path param
|
|
103
103
|
*/
|
|
104
104
|
supplierItemGuid: string;
|
|
105
105
|
/**
|
|
106
|
-
* Body param
|
|
106
|
+
* Body param
|
|
107
107
|
*/
|
|
108
108
|
primary?: boolean;
|
|
109
109
|
}
|
|
@@ -67,15 +67,15 @@ export interface AddressRetrieveParams {
|
|
|
67
67
|
}
|
|
68
68
|
export interface AddressUpdateParams {
|
|
69
69
|
/**
|
|
70
|
-
* Path param
|
|
70
|
+
* Path param
|
|
71
71
|
*/
|
|
72
72
|
supplierGuid: string;
|
|
73
73
|
/**
|
|
74
|
-
* Body param
|
|
74
|
+
* Body param
|
|
75
75
|
*/
|
|
76
76
|
address?: AddressCreateVo;
|
|
77
77
|
/**
|
|
78
|
-
* Body param
|
|
78
|
+
* Body param
|
|
79
79
|
*/
|
|
80
80
|
primary?: boolean;
|
|
81
81
|
}
|
|
@@ -67,15 +67,15 @@ export interface AddressRetrieveParams {
|
|
|
67
67
|
}
|
|
68
68
|
export interface AddressUpdateParams {
|
|
69
69
|
/**
|
|
70
|
-
* Path param
|
|
70
|
+
* Path param
|
|
71
71
|
*/
|
|
72
72
|
supplierGuid: string;
|
|
73
73
|
/**
|
|
74
|
-
* Body param
|
|
74
|
+
* Body param
|
|
75
75
|
*/
|
|
76
76
|
address?: AddressCreateVo;
|
|
77
77
|
/**
|
|
78
|
-
* Body param
|
|
78
|
+
* Body param
|
|
79
79
|
*/
|
|
80
80
|
primary?: boolean;
|
|
81
81
|
}
|
|
@@ -53,23 +53,23 @@ export interface PhonenumberRetrieveParams {
|
|
|
53
53
|
}
|
|
54
54
|
export interface PhonenumberUpdateParams {
|
|
55
55
|
/**
|
|
56
|
-
* Path param
|
|
56
|
+
* Path param
|
|
57
57
|
*/
|
|
58
58
|
supplierGuid: string;
|
|
59
59
|
/**
|
|
60
|
-
* Body param
|
|
60
|
+
* Body param
|
|
61
61
|
*/
|
|
62
62
|
comment?: string;
|
|
63
63
|
/**
|
|
64
|
-
* Body param
|
|
64
|
+
* Body param
|
|
65
65
|
*/
|
|
66
66
|
extension?: string;
|
|
67
67
|
/**
|
|
68
|
-
* Body param
|
|
68
|
+
* Body param
|
|
69
69
|
*/
|
|
70
70
|
label?: string;
|
|
71
71
|
/**
|
|
72
|
-
* Body param
|
|
72
|
+
* Body param
|
|
73
73
|
*/
|
|
74
74
|
number?: string;
|
|
75
75
|
}
|
|
@@ -53,23 +53,23 @@ export interface PhonenumberRetrieveParams {
|
|
|
53
53
|
}
|
|
54
54
|
export interface PhonenumberUpdateParams {
|
|
55
55
|
/**
|
|
56
|
-
* Path param
|
|
56
|
+
* Path param
|
|
57
57
|
*/
|
|
58
58
|
supplierGuid: string;
|
|
59
59
|
/**
|
|
60
|
-
* Body param
|
|
60
|
+
* Body param
|
|
61
61
|
*/
|
|
62
62
|
comment?: string;
|
|
63
63
|
/**
|
|
64
|
-
* Body param
|
|
64
|
+
* Body param
|
|
65
65
|
*/
|
|
66
66
|
extension?: string;
|
|
67
67
|
/**
|
|
68
|
-
* Body param
|
|
68
|
+
* Body param
|
|
69
69
|
*/
|
|
70
70
|
label?: string;
|
|
71
71
|
/**
|
|
72
|
-
* Body param
|
|
72
|
+
* Body param
|
|
73
73
|
*/
|
|
74
74
|
number?: string;
|
|
75
75
|
}
|
package/src/client.ts
CHANGED
|
@@ -464,15 +464,14 @@ export class Arena {
|
|
|
464
464
|
|
|
465
465
|
if (!this.oauth2AuthState) {
|
|
466
466
|
this.oauth2AuthState = {
|
|
467
|
-
promise: this.fetch(
|
|
468
|
-
|
|
469
|
-
{
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
Authorization: `Basic ${toBase64(`${this.clientID}:${this.clientScrent}`)}`,
|
|
473
|
-
},
|
|
467
|
+
promise: this.fetch(this.buildURL('https://openauth.web.prod.bom.com:4431', {}), {
|
|
468
|
+
method: 'POST',
|
|
469
|
+
headers: {
|
|
470
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
471
|
+
Authorization: `Basic ${toBase64(`${this.clientID}:${this.clientScrent}`)}`,
|
|
474
472
|
},
|
|
475
|
-
|
|
473
|
+
body: 'grant_type=client_credentials',
|
|
474
|
+
}).then(async (res) => {
|
|
476
475
|
if (!res.ok) {
|
|
477
476
|
const errText = await res.text().catch(() => '');
|
|
478
477
|
const errJSON = errText ? safeJSON(errText) : undefined;
|
|
@@ -795,9 +794,10 @@ export class Arena {
|
|
|
795
794
|
controller: AbortController,
|
|
796
795
|
): Promise<Response> {
|
|
797
796
|
const { signal, method, ...options } = init || {};
|
|
798
|
-
|
|
797
|
+
const abort = controller.abort.bind(controller);
|
|
798
|
+
if (signal) signal.addEventListener('abort', abort, { once: true });
|
|
799
799
|
|
|
800
|
-
const timeout = setTimeout(
|
|
800
|
+
const timeout = setTimeout(abort, ms);
|
|
801
801
|
|
|
802
802
|
const isReadableBody =
|
|
803
803
|
((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) ||
|
package/src/internal/parse.ts
CHANGED
|
@@ -29,6 +29,12 @@ export async function defaultParseResponse<T>(client: Arena, props: APIResponseP
|
|
|
29
29
|
const mediaType = contentType?.split(';')[0]?.trim();
|
|
30
30
|
const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json');
|
|
31
31
|
if (isJSON) {
|
|
32
|
+
const contentLength = response.headers.get('content-length');
|
|
33
|
+
if (contentLength === '0') {
|
|
34
|
+
// if there is no content we can't do anything
|
|
35
|
+
return undefined as T;
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
const json = await response.json();
|
|
33
39
|
return json as T;
|
|
34
40
|
}
|
|
@@ -163,27 +163,27 @@ export interface ImplementationtaskRetrieveParams {
|
|
|
163
163
|
|
|
164
164
|
export interface ImplementationtaskUpdateParams {
|
|
165
165
|
/**
|
|
166
|
-
* Path param
|
|
166
|
+
* Path param
|
|
167
167
|
*/
|
|
168
168
|
changeGuid: string;
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
|
-
* Body param
|
|
171
|
+
* Body param
|
|
172
172
|
*/
|
|
173
173
|
assignee?: ImplementationAssigneeCreate;
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
* Body param
|
|
176
|
+
* Body param
|
|
177
177
|
*/
|
|
178
178
|
dueDate?: string;
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
|
-
* Body param
|
|
181
|
+
* Body param
|
|
182
182
|
*/
|
|
183
183
|
name?: string;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* Body param
|
|
186
|
+
* Body param
|
|
187
187
|
*/
|
|
188
188
|
status?: string;
|
|
189
189
|
}
|