@api-client/core 0.10.3 → 0.10.5
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/build/cjs/src/runtime/store/RouteBuilder.d.ts +3 -0
- package/build/cjs/src/runtime/store/RouteBuilder.js +9 -0
- package/build/cjs/src/runtime/store/RouteBuilder.js.map +1 -1
- package/build/cjs/src/runtime/store/interfaces/Media.d.ts +4 -4
- package/build/cjs/src/runtime/store/interfaces/Trash.d.ts +4 -4
- package/build/esm/src/runtime/store/RouteBuilder.d.ts +3 -0
- package/build/esm/src/runtime/store/RouteBuilder.js +9 -0
- package/build/esm/src/runtime/store/RouteBuilder.js.map +1 -1
- package/build/esm/src/runtime/store/interfaces/Media.d.ts +4 -4
- package/build/esm/src/runtime/store/interfaces/Trash.d.ts +4 -4
- package/data/models/APIC-187.json +3 -3
- package/data/models/APIC-188.json +3 -3
- package/data/models/APIC-233.json +1 -1
- package/data/models/APIC-391.json +2 -2
- package/data/models/APIC-483.json +1 -1
- package/data/models/APIC-487.json +1 -1
- package/data/models/APIC-655.json +1 -1
- package/data/models/APIC-689.json +1 -1
- package/data/models/APIC-690.json +5 -5
- package/data/models/SE-10469.json +1 -1
- package/data/models/SE-13092.json +5 -5
- package/data/models/SE-22063.json +2 -2
- package/data/models/amf-helper-api.json +14 -14
- package/data/models/arc-demo-api.json +15 -15
- package/data/models/async-api.json +1 -1
- package/data/models/example-generator-api.json +10 -10
- package/data/models/expanded-api.json +1 -1
- package/data/models/flattened-api.json +1 -1
- package/data/models/multiple-servers.json +1 -1
- package/data/models/oas-3-api.json +1 -1
- package/data/models/oas-date.json +1 -1
- package/data/models/oas-types.json +1 -1
- package/data/models/oas-unions.json +1 -1
- package/data/models/petstore.json +1 -1
- package/data/models/raml-date.json +1 -1
- package/data/models/recursive.json +1 -1
- package/data/models/schema-api.json +7915 -7793
- package/data/models/secured-api.json +16 -16
- package/data/models/tracked-to-linked.json +4 -4
- package/package.json +4 -4
- package/src/runtime/store/RouteBuilder.ts +12 -0
- package/src/runtime/store/interfaces/Media.ts +4 -4
- package/src/runtime/store/interfaces/Trash.ts +4 -4
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"@type": [
|
|
6
6
|
"doc:APIContractProcessingData"
|
|
7
7
|
],
|
|
8
|
-
"apiContract:modelVersion": "3.8.
|
|
8
|
+
"apiContract:modelVersion": "3.8.2",
|
|
9
9
|
"doc:transformed": true,
|
|
10
10
|
"doc:sourceSpec": "RAML 1.0"
|
|
11
11
|
},
|
|
@@ -16122,7 +16122,7 @@
|
|
|
16122
16122
|
"@type": [
|
|
16123
16123
|
"doc:APIContractProcessingData"
|
|
16124
16124
|
],
|
|
16125
|
-
"apiContract:modelVersion": "3.8.
|
|
16125
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16126
16126
|
"doc:sourceSpec": "RAML 1.0"
|
|
16127
16127
|
},
|
|
16128
16128
|
{
|
|
@@ -16168,7 +16168,7 @@
|
|
|
16168
16168
|
"@type": [
|
|
16169
16169
|
"doc:APIContractProcessingData"
|
|
16170
16170
|
],
|
|
16171
|
-
"apiContract:modelVersion": "3.8.
|
|
16171
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16172
16172
|
"doc:sourceSpec": "RAML 1.0"
|
|
16173
16173
|
},
|
|
16174
16174
|
{
|
|
@@ -16204,7 +16204,7 @@
|
|
|
16204
16204
|
"@type": [
|
|
16205
16205
|
"doc:APIContractProcessingData"
|
|
16206
16206
|
],
|
|
16207
|
-
"apiContract:modelVersion": "3.8.
|
|
16207
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16208
16208
|
"doc:sourceSpec": "RAML 1.0"
|
|
16209
16209
|
},
|
|
16210
16210
|
{
|
|
@@ -16258,7 +16258,7 @@
|
|
|
16258
16258
|
"@type": [
|
|
16259
16259
|
"doc:APIContractProcessingData"
|
|
16260
16260
|
],
|
|
16261
|
-
"apiContract:modelVersion": "3.8.
|
|
16261
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16262
16262
|
"doc:sourceSpec": "RAML 1.0"
|
|
16263
16263
|
},
|
|
16264
16264
|
{
|
|
@@ -16304,7 +16304,7 @@
|
|
|
16304
16304
|
"@type": [
|
|
16305
16305
|
"doc:APIContractProcessingData"
|
|
16306
16306
|
],
|
|
16307
|
-
"apiContract:modelVersion": "3.8.
|
|
16307
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16308
16308
|
"doc:sourceSpec": "RAML 1.0"
|
|
16309
16309
|
},
|
|
16310
16310
|
{
|
|
@@ -16340,7 +16340,7 @@
|
|
|
16340
16340
|
"@type": [
|
|
16341
16341
|
"doc:APIContractProcessingData"
|
|
16342
16342
|
],
|
|
16343
|
-
"apiContract:modelVersion": "3.8.
|
|
16343
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16344
16344
|
"doc:sourceSpec": "RAML 1.0"
|
|
16345
16345
|
},
|
|
16346
16346
|
{
|
|
@@ -16381,7 +16381,7 @@
|
|
|
16381
16381
|
"@type": [
|
|
16382
16382
|
"doc:APIContractProcessingData"
|
|
16383
16383
|
],
|
|
16384
|
-
"apiContract:modelVersion": "3.8.
|
|
16384
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16385
16385
|
"doc:sourceSpec": "RAML 1.0"
|
|
16386
16386
|
},
|
|
16387
16387
|
{
|
|
@@ -16422,7 +16422,7 @@
|
|
|
16422
16422
|
"@type": [
|
|
16423
16423
|
"doc:APIContractProcessingData"
|
|
16424
16424
|
],
|
|
16425
|
-
"apiContract:modelVersion": "3.8.
|
|
16425
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16426
16426
|
"doc:sourceSpec": "RAML 1.0"
|
|
16427
16427
|
},
|
|
16428
16428
|
{
|
|
@@ -16458,7 +16458,7 @@
|
|
|
16458
16458
|
"@type": [
|
|
16459
16459
|
"doc:APIContractProcessingData"
|
|
16460
16460
|
],
|
|
16461
|
-
"apiContract:modelVersion": "3.8.
|
|
16461
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16462
16462
|
"doc:sourceSpec": "RAML 1.0"
|
|
16463
16463
|
},
|
|
16464
16464
|
{
|
|
@@ -16499,7 +16499,7 @@
|
|
|
16499
16499
|
"@type": [
|
|
16500
16500
|
"doc:APIContractProcessingData"
|
|
16501
16501
|
],
|
|
16502
|
-
"apiContract:modelVersion": "3.8.
|
|
16502
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16503
16503
|
"doc:sourceSpec": "RAML 1.0"
|
|
16504
16504
|
},
|
|
16505
16505
|
{
|
|
@@ -16540,7 +16540,7 @@
|
|
|
16540
16540
|
"@type": [
|
|
16541
16541
|
"doc:APIContractProcessingData"
|
|
16542
16542
|
],
|
|
16543
|
-
"apiContract:modelVersion": "3.8.
|
|
16543
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16544
16544
|
"doc:sourceSpec": "RAML 1.0"
|
|
16545
16545
|
},
|
|
16546
16546
|
{
|
|
@@ -16576,7 +16576,7 @@
|
|
|
16576
16576
|
"@type": [
|
|
16577
16577
|
"doc:APIContractProcessingData"
|
|
16578
16578
|
],
|
|
16579
|
-
"apiContract:modelVersion": "3.8.
|
|
16579
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16580
16580
|
"doc:sourceSpec": "RAML 1.0"
|
|
16581
16581
|
},
|
|
16582
16582
|
{
|
|
@@ -16612,7 +16612,7 @@
|
|
|
16612
16612
|
"@type": [
|
|
16613
16613
|
"doc:APIContractProcessingData"
|
|
16614
16614
|
],
|
|
16615
|
-
"apiContract:modelVersion": "3.8.
|
|
16615
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16616
16616
|
"doc:sourceSpec": "RAML 1.0"
|
|
16617
16617
|
},
|
|
16618
16618
|
{
|
|
@@ -16648,7 +16648,7 @@
|
|
|
16648
16648
|
"@type": [
|
|
16649
16649
|
"doc:APIContractProcessingData"
|
|
16650
16650
|
],
|
|
16651
|
-
"apiContract:modelVersion": "3.8.
|
|
16651
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16652
16652
|
"doc:sourceSpec": "RAML 1.0"
|
|
16653
16653
|
},
|
|
16654
16654
|
{
|
|
@@ -16681,7 +16681,7 @@
|
|
|
16681
16681
|
"@type": [
|
|
16682
16682
|
"doc:APIContractProcessingData"
|
|
16683
16683
|
],
|
|
16684
|
-
"apiContract:modelVersion": "3.8.
|
|
16684
|
+
"apiContract:modelVersion": "3.8.2",
|
|
16685
16685
|
"doc:sourceSpec": "RAML 1.0"
|
|
16686
16686
|
},
|
|
16687
16687
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"@type": [
|
|
6
6
|
"doc:APIContractProcessingData"
|
|
7
7
|
],
|
|
8
|
-
"apiContract:modelVersion": "3.8.
|
|
8
|
+
"apiContract:modelVersion": "3.8.2",
|
|
9
9
|
"doc:transformed": true,
|
|
10
10
|
"doc:sourceSpec": "RAML 1.0"
|
|
11
11
|
},
|
|
@@ -1777,7 +1777,7 @@
|
|
|
1777
1777
|
"@type": [
|
|
1778
1778
|
"doc:APIContractProcessingData"
|
|
1779
1779
|
],
|
|
1780
|
-
"apiContract:modelVersion": "3.8.
|
|
1780
|
+
"apiContract:modelVersion": "3.8.2",
|
|
1781
1781
|
"doc:sourceSpec": "RAML 1.0"
|
|
1782
1782
|
},
|
|
1783
1783
|
{
|
|
@@ -1805,7 +1805,7 @@
|
|
|
1805
1805
|
"@type": [
|
|
1806
1806
|
"doc:APIContractProcessingData"
|
|
1807
1807
|
],
|
|
1808
|
-
"apiContract:modelVersion": "3.8.
|
|
1808
|
+
"apiContract:modelVersion": "3.8.2",
|
|
1809
1809
|
"doc:sourceSpec": "RAML 1.0"
|
|
1810
1810
|
},
|
|
1811
1811
|
{
|
|
@@ -1833,7 +1833,7 @@
|
|
|
1833
1833
|
"@type": [
|
|
1834
1834
|
"doc:APIContractProcessingData"
|
|
1835
1835
|
],
|
|
1836
|
-
"apiContract:modelVersion": "3.8.
|
|
1836
|
+
"apiContract:modelVersion": "3.8.2",
|
|
1837
1837
|
"doc:sourceSpec": "RAML 1.0"
|
|
1838
1838
|
},
|
|
1839
1839
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@api-client/core",
|
|
3
3
|
"description": "The API Client's core client library. Works in NodeJS and in a ES enabled browser.",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.5",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./build/esm/browser.js": {
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"@types/sinon": "^10.0.11",
|
|
60
60
|
"@typescript-eslint/eslint-plugin": "^5.12.0",
|
|
61
61
|
"@typescript-eslint/parser": "^5.12.0",
|
|
62
|
-
"@web/dev-server-esbuild": "^0.
|
|
63
|
-
"@web/test-runner": "^0.
|
|
64
|
-
"@web/test-runner-playwright": "^0.
|
|
62
|
+
"@web/dev-server-esbuild": "^0.4.0",
|
|
63
|
+
"@web/test-runner": "^0.16.0",
|
|
64
|
+
"@web/test-runner-playwright": "^0.10.0",
|
|
65
65
|
"amf-client-js": "^5.2.4-0",
|
|
66
66
|
"chai": "^4.3.4",
|
|
67
67
|
"chai-as-promised": "^7.1.1",
|
|
@@ -147,4 +147,16 @@ export class RouteBuilder {
|
|
|
147
147
|
static projectExecutionClear(scope: 'space' | 'project' | 'folder'): string {
|
|
148
148
|
return `/project/execution/clear/${scope}`;
|
|
149
149
|
}
|
|
150
|
+
|
|
151
|
+
static authLogin(): string {
|
|
152
|
+
return '/auth/login';
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
static authProvider(provider: string): string {
|
|
156
|
+
return `/auth/${provider}`;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
static authToken(code: string): string {
|
|
160
|
+
return `/auth/token/${code}`;
|
|
161
|
+
}
|
|
150
162
|
}
|
|
@@ -16,14 +16,14 @@ export interface Media {
|
|
|
16
16
|
* @param mime The content mime type. Used for (de)serialization.
|
|
17
17
|
* @param allowOverwrite Whether overwriting is permitted. When not then in throws an error when trying to re-create a file.
|
|
18
18
|
*/
|
|
19
|
-
add(key: string, contents: unknown, mime: string, allowOverwrite: boolean): Promise<void>;
|
|
19
|
+
add(space: string, key: string, contents: unknown, mime: string, allowOverwrite: boolean): Promise<void>;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Reads file contents.
|
|
23
23
|
* @param key The datastore key of the file
|
|
24
24
|
* @param opts Read options.
|
|
25
25
|
*/
|
|
26
|
-
read(key: string, opts?: MediaReadOptions): Promise<unknown>;
|
|
26
|
+
read(space: string, key: string, opts?: MediaReadOptions): Promise<unknown>;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Deletes file contents.
|
|
@@ -31,7 +31,7 @@ export interface Media {
|
|
|
31
31
|
*
|
|
32
32
|
* @param key The file key to delete.
|
|
33
33
|
*/
|
|
34
|
-
delete(key: string): Promise<void>;
|
|
34
|
+
delete(space: string, key: string): Promise<void>;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* This is the preferred way to update a file contents.
|
|
@@ -42,5 +42,5 @@ export interface Media {
|
|
|
42
42
|
* @param key The datastore key of the file to patch
|
|
43
43
|
* @param info The patch to apply.
|
|
44
44
|
*/
|
|
45
|
-
patch(key: string, info: IPatchInfo): Promise<IPatchRevision>;
|
|
45
|
+
patch(space: string, key: string, info: IPatchInfo): Promise<IPatchRevision>;
|
|
46
46
|
}
|
|
@@ -26,28 +26,28 @@ export interface Trash {
|
|
|
26
26
|
*
|
|
27
27
|
* @param key The key of the deleted object
|
|
28
28
|
*/
|
|
29
|
-
delete(key: string): Promise<ContextDeleteRecord>;
|
|
29
|
+
delete(space: string, key: string): Promise<ContextDeleteRecord>;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Permanently deletes a number of files in a batch operation.
|
|
33
33
|
*
|
|
34
34
|
* @param keys The list of trash entry keys to delete.
|
|
35
35
|
*/
|
|
36
|
-
batchDelete(keys: string[]): Promise<IBulkOperationResult<ContextDeleteRecord>>;
|
|
36
|
+
batchDelete(space: string, keys: string[]): Promise<IBulkOperationResult<ContextDeleteRecord>>;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Restores trash entries permanently from the store.
|
|
40
40
|
*
|
|
41
41
|
* @param key The key of the file to restore
|
|
42
42
|
*/
|
|
43
|
-
restore(key: string): Promise<ContextChangeRecord<IFile>>;
|
|
43
|
+
restore(space: string, key: string): Promise<ContextChangeRecord<IFile>>;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Restores multiple files in a batch operation.
|
|
47
47
|
*
|
|
48
48
|
* @param keys The lit of trash keys to restore.
|
|
49
49
|
*/
|
|
50
|
-
batchRestore(keys: string[]): Promise<IBulkOperationResult<ContextChangeRecord<IFile>>>;
|
|
50
|
+
batchRestore(space: string, keys: string[]): Promise<IBulkOperationResult<ContextChangeRecord<IFile>>>;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* Empties the trash for the given space.
|