@remkoj/optimizely-graph-client 1.0.4 → 1.0.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/dist/admin-api/client/OptimizelyGraphAdminApi.js +1 -1
- package/dist/admin-api/client/core/OpenAPI.js +1 -1
- package/dist/admin-api/client/index.d.ts +1 -0
- package/dist/admin-api/client/index.js +1 -0
- package/dist/admin-api/client/index.js.map +1 -1
- package/dist/admin-api/client/models/DeleteMode.d.ts +5 -0
- package/dist/admin-api/client/models/DeleteMode.js +11 -0
- package/dist/admin-api/client/models/DeleteMode.js.map +1 -0
- package/dist/admin-api/client/models/PropertyType_V3.d.ts +2 -0
- package/dist/admin-api/client/services/DefinitionV3Service.d.ts +25 -11
- package/dist/admin-api/client/services/DefinitionV3Service.js +25 -12
- package/dist/admin-api/client/services/DefinitionV3Service.js.map +1 -1
- package/dist/admin-api/client/services/LogsService.d.ts +1 -1
- package/dist/admin-api/client/services/LogsService.js +1 -1
- package/dist/admin-api/client/services/ResourcesService.d.ts +20 -2
- package/dist/admin-api/client/services/ResourcesService.js +40 -2
- package/dist/admin-api/client/services/ResourcesService.js.map +1 -1
- package/dist/admin-api/client/services/WebhooksService.d.ts +10 -8
- package/dist/admin-api/client/services/WebhooksService.js +10 -8
- package/dist/admin-api/client/services/WebhooksService.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ export class OptimizelyGraphAdminApi {
|
|
|
10
10
|
constructor(config, HttpRequest = FetchHttpRequest) {
|
|
11
11
|
this.request = new HttpRequest({
|
|
12
12
|
BASE: config?.BASE ?? 'https://prod.cg.optimizely.com',
|
|
13
|
-
VERSION: config?.VERSION ?? '3.
|
|
13
|
+
VERSION: config?.VERSION ?? '3.7.3',
|
|
14
14
|
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
15
15
|
CREDENTIALS: config?.CREDENTIALS ?? 'include',
|
|
16
16
|
TOKEN: config?.TOKEN,
|
|
@@ -12,6 +12,7 @@ export type { ContentTypeDefinition_V3 } from './models/ContentTypeDefinition_V3
|
|
|
12
12
|
export type { ContentTypeMap_V3 } from './models/ContentTypeMap_V3.js';
|
|
13
13
|
export type { ContentTypeProperty_V2 } from './models/ContentTypeProperty_V2.js';
|
|
14
14
|
export type { ContentTypeProperty_V3 } from './models/ContentTypeProperty_V3.js';
|
|
15
|
+
export { DeleteMode } from './models/DeleteMode.js';
|
|
15
16
|
export type { FilterMap } from './models/FilterMap.js';
|
|
16
17
|
export type { GraphQLRequest } from './models/GraphQLRequest.js';
|
|
17
18
|
export type { GraphQLResponse } from './models/GraphQLResponse.js';
|
|
@@ -7,6 +7,7 @@ export { ApiError } from './core/ApiError.js';
|
|
|
7
7
|
export { BaseHttpRequest } from './core/BaseHttpRequest.js';
|
|
8
8
|
export { CancelablePromise, CancelError } from './core/CancelablePromise.js';
|
|
9
9
|
export { OpenAPI } from './core/OpenAPI.js';
|
|
10
|
+
export { DeleteMode } from './models/DeleteMode.js';
|
|
10
11
|
export { DefinitionV2Service } from './services/DefinitionV2Service.js';
|
|
11
12
|
export { DefinitionV3Service } from './services/DefinitionV3Service.js';
|
|
12
13
|
export { LogsService } from './services/LogsService.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/admin-api/client/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/admin-api/client/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAW5C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA0BpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var DeleteMode;
|
|
6
|
+
(function (DeleteMode) {
|
|
7
|
+
DeleteMode["TYPES"] = "types";
|
|
8
|
+
DeleteMode["DATA"] = "data";
|
|
9
|
+
DeleteMode["RESET"] = "reset";
|
|
10
|
+
})(DeleteMode || (DeleteMode = {}));
|
|
11
|
+
//# sourceMappingURL=DeleteMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteMode.js","sourceRoot":"","sources":["../../../../src/admin-api/client/models/DeleteMode.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,oBAAoB;AACpB,oBAAoB;AACpB,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IAClB,6BAAe,CAAA;IACf,2BAAa,CAAA;IACb,6BAAe,CAAA;AACnB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ContentTypeDefinition_V3 } from '../models/ContentTypeDefinition_V3.js';
|
|
2
|
+
import type { DeleteMode } from '../models/DeleteMode.js';
|
|
2
3
|
import type { SourceInfoMap } from '../models/SourceInfoMap.js';
|
|
3
4
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
4
5
|
import type { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
@@ -6,25 +7,38 @@ export declare class DefinitionV3Service {
|
|
|
6
7
|
readonly httpRequest: BaseHttpRequest;
|
|
7
8
|
constructor(httpRequest: BaseHttpRequest);
|
|
8
9
|
/**
|
|
9
|
-
* Get
|
|
10
|
-
* Get
|
|
11
|
-
* @param id The id of the source
|
|
10
|
+
* Get source metadata
|
|
11
|
+
* Get `id`, `label` and `languages` fields of the source
|
|
12
|
+
* @param id The id of the source _(optional)_
|
|
13
|
+
* - _(empty): all sources_
|
|
14
|
+
* - _**default**: only default source_
|
|
15
|
+
* - _**src1**: only src1_
|
|
12
16
|
* @returns SourceInfoMap Ok
|
|
13
17
|
* @throws ApiError
|
|
14
18
|
*/
|
|
15
19
|
getContentV3SourceHandler(id?: string): CancelablePromise<SourceInfoMap>;
|
|
16
20
|
/**
|
|
17
|
-
* Delete
|
|
18
|
-
* Delete content source
|
|
21
|
+
* Delete source
|
|
22
|
+
* Delete content _types / data_ of the source
|
|
19
23
|
* @param id The id of the source
|
|
20
|
-
*
|
|
24
|
+
* - _(empty): all sources_
|
|
25
|
+
* - _**default**: only default source_
|
|
26
|
+
* - _**src1**: only src1_
|
|
27
|
+
* @param mode Delete mode
|
|
28
|
+
*
|
|
29
|
+
* | mode | description | types | data |
|
|
30
|
+
* | -- | -- | -- | -- |
|
|
31
|
+
* | _(empty)_ | _delete types and data_ | _(delete)_ | _(delete)_ |
|
|
32
|
+
* | _**types**_ | _delete only types_ | _(delete)_ | |
|
|
33
|
+
* | _**data**_ | _delete only data_ | | _(delete)_ |
|
|
34
|
+
* | _**reset**_ | _reset data_ | _(delete)_ | _(reset)_ |
|
|
21
35
|
* @returns any Source is deleted successfully
|
|
22
36
|
* @throws ApiError
|
|
23
37
|
*/
|
|
24
|
-
deleteContentV3SourceHandler(id?: string,
|
|
38
|
+
deleteContentV3SourceHandler(id?: string, mode?: DeleteMode): CancelablePromise<any>;
|
|
25
39
|
/**
|
|
26
|
-
* Get
|
|
27
|
-
* Get content types
|
|
40
|
+
* Get content types
|
|
41
|
+
* Get content types of the source
|
|
28
42
|
* @param id The id of the source
|
|
29
43
|
* @returns ContentTypeDefinition_V3 Ok
|
|
30
44
|
* @throws ApiError
|
|
@@ -32,7 +46,7 @@ export declare class DefinitionV3Service {
|
|
|
32
46
|
getContentV3TypeHandler(id?: string): CancelablePromise<ContentTypeDefinition_V3>;
|
|
33
47
|
/**
|
|
34
48
|
* Partial content type update
|
|
35
|
-
* Update content types
|
|
49
|
+
* Update content types of the source partially
|
|
36
50
|
* @param requestBody Content type definitions
|
|
37
51
|
* @param id The id of the source
|
|
38
52
|
* @returns void
|
|
@@ -41,7 +55,7 @@ export declare class DefinitionV3Service {
|
|
|
41
55
|
postContentV3TypeHandler(requestBody: ContentTypeDefinition_V3, id?: string): CancelablePromise<void>;
|
|
42
56
|
/**
|
|
43
57
|
* Full content type update
|
|
44
|
-
* Update content types
|
|
58
|
+
* Update content types of the source (overwrite all)
|
|
45
59
|
* @param requestBody Content type definitions
|
|
46
60
|
* @param id The id of the source
|
|
47
61
|
* @returns void
|
|
@@ -3,9 +3,12 @@ export class DefinitionV3Service {
|
|
|
3
3
|
this.httpRequest = httpRequest;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
* Get
|
|
7
|
-
* Get
|
|
8
|
-
* @param id The id of the source
|
|
6
|
+
* Get source metadata
|
|
7
|
+
* Get `id`, `label` and `languages` fields of the source
|
|
8
|
+
* @param id The id of the source _(optional)_
|
|
9
|
+
* - _(empty): all sources_
|
|
10
|
+
* - _**default**: only default source_
|
|
11
|
+
* - _**src1**: only src1_
|
|
9
12
|
* @returns SourceInfoMap Ok
|
|
10
13
|
* @throws ApiError
|
|
11
14
|
*/
|
|
@@ -19,20 +22,30 @@ export class DefinitionV3Service {
|
|
|
19
22
|
});
|
|
20
23
|
}
|
|
21
24
|
/**
|
|
22
|
-
* Delete
|
|
23
|
-
* Delete content source
|
|
25
|
+
* Delete source
|
|
26
|
+
* Delete content _types / data_ of the source
|
|
24
27
|
* @param id The id of the source
|
|
25
|
-
*
|
|
28
|
+
* - _(empty): all sources_
|
|
29
|
+
* - _**default**: only default source_
|
|
30
|
+
* - _**src1**: only src1_
|
|
31
|
+
* @param mode Delete mode
|
|
32
|
+
*
|
|
33
|
+
* | mode | description | types | data |
|
|
34
|
+
* | -- | -- | -- | -- |
|
|
35
|
+
* | _(empty)_ | _delete types and data_ | _(delete)_ | _(delete)_ |
|
|
36
|
+
* | _**types**_ | _delete only types_ | _(delete)_ | |
|
|
37
|
+
* | _**data**_ | _delete only data_ | | _(delete)_ |
|
|
38
|
+
* | _**reset**_ | _reset data_ | _(delete)_ | _(reset)_ |
|
|
26
39
|
* @returns any Source is deleted successfully
|
|
27
40
|
* @throws ApiError
|
|
28
41
|
*/
|
|
29
|
-
deleteContentV3SourceHandler(id,
|
|
42
|
+
deleteContentV3SourceHandler(id, mode) {
|
|
30
43
|
return this.httpRequest.request({
|
|
31
44
|
method: 'DELETE',
|
|
32
45
|
url: '/api/content/v3/sources',
|
|
33
46
|
query: {
|
|
34
47
|
'id': id,
|
|
35
|
-
'
|
|
48
|
+
'mode': mode,
|
|
36
49
|
},
|
|
37
50
|
errors: {
|
|
38
51
|
404: `Source is not found`,
|
|
@@ -40,8 +53,8 @@ export class DefinitionV3Service {
|
|
|
40
53
|
});
|
|
41
54
|
}
|
|
42
55
|
/**
|
|
43
|
-
* Get
|
|
44
|
-
* Get content types
|
|
56
|
+
* Get content types
|
|
57
|
+
* Get content types of the source
|
|
45
58
|
* @param id The id of the source
|
|
46
59
|
* @returns ContentTypeDefinition_V3 Ok
|
|
47
60
|
* @throws ApiError
|
|
@@ -57,7 +70,7 @@ export class DefinitionV3Service {
|
|
|
57
70
|
}
|
|
58
71
|
/**
|
|
59
72
|
* Partial content type update
|
|
60
|
-
* Update content types
|
|
73
|
+
* Update content types of the source partially
|
|
61
74
|
* @param requestBody Content type definitions
|
|
62
75
|
* @param id The id of the source
|
|
63
76
|
* @returns void
|
|
@@ -76,7 +89,7 @@ export class DefinitionV3Service {
|
|
|
76
89
|
}
|
|
77
90
|
/**
|
|
78
91
|
* Full content type update
|
|
79
|
-
* Update content types
|
|
92
|
+
* Update content types of the source (overwrite all)
|
|
80
93
|
* @param requestBody Content type definitions
|
|
81
94
|
* @param id The id of the source
|
|
82
95
|
* @returns void
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefinitionV3Service.js","sourceRoot":"","sources":["../../../../src/admin-api/client/services/DefinitionV3Service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DefinitionV3Service.js","sourceRoot":"","sources":["../../../../src/admin-api/client/services/DefinitionV3Service.ts"],"names":[],"mappings":"AASA,MAAM,OAAO,mBAAmB;IAC5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;;;;OASG;IACI,yBAAyB,CAC5B,EAAW;QAEX,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;YAC9B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;;;;;;;;;;;OAiBG;IACI,4BAA4B,CAC/B,EAAW,EACX,IAAiB;QAEjB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,yBAAyB;YAC9B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;gBACR,MAAM,EAAE,IAAI;aACf;YACD,MAAM,EAAE;gBACJ,GAAG,EAAE,qBAAqB;aAC7B;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,uBAAuB,CAC1B,KAAa,SAAS;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,wBAAwB,CAC3B,WAAqC,EACrC,KAAa,SAAS;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,uBAAuB,CAC1B,WAAqC,EACrC,KAAa,SAAS;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE;gBACH,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -10,10 +10,19 @@ export declare class ResourcesService {
|
|
|
10
10
|
* Stop words are the words in a stop list (or stop list or negative dictionary) which are filtered out (stopped) before or after processing of natural language data (text) because they are insignificant
|
|
11
11
|
* @param requestBody
|
|
12
12
|
* @param languageRouting
|
|
13
|
+
* @param sourceRouting
|
|
13
14
|
* @returns void
|
|
14
15
|
* @throws ApiError
|
|
15
16
|
*/
|
|
16
|
-
upsertStopwordHandler(requestBody: StopwordsBody, languageRouting?: string): CancelablePromise<void>;
|
|
17
|
+
upsertStopwordHandler(requestBody: StopwordsBody, languageRouting?: string, sourceRouting?: string): CancelablePromise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Delete stop words
|
|
20
|
+
* @param languageRouting
|
|
21
|
+
* @param sourceRouting
|
|
22
|
+
* @returns void
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
deleteStopwordHandler(languageRouting?: string, sourceRouting?: string): CancelablePromise<void>;
|
|
17
26
|
/**
|
|
18
27
|
* Store synonyms
|
|
19
28
|
* When you write a query, you can use synonyms to expand the keywords to get results that users otherwise may not have found.
|
|
@@ -22,9 +31,18 @@ export declare class ResourcesService {
|
|
|
22
31
|
* This happens when you store synonyms in Optimizely Graph and enable them per field in your query. Otherwise, many relevant results may not be retrieved.
|
|
23
32
|
* @param requestBody
|
|
24
33
|
* @param languageRouting
|
|
34
|
+
* @param sourceRouting
|
|
25
35
|
* @param synonymSlot
|
|
26
36
|
* @returns void
|
|
27
37
|
* @throws ApiError
|
|
28
38
|
*/
|
|
29
|
-
upsertSynonymHandler(requestBody: SynonymsBody, languageRouting?: string, synonymSlot?: 'one' | 'two'): CancelablePromise<void>;
|
|
39
|
+
upsertSynonymHandler(requestBody: SynonymsBody, languageRouting?: string, sourceRouting?: string, synonymSlot?: 'one' | 'two'): CancelablePromise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Delete synonyms
|
|
42
|
+
* @param languageRouting
|
|
43
|
+
* @param sourceRouting
|
|
44
|
+
* @returns void
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
deleteSynonymHandler(languageRouting?: string, sourceRouting?: string): CancelablePromise<void>;
|
|
30
48
|
}
|
|
@@ -7,20 +7,39 @@ export class ResourcesService {
|
|
|
7
7
|
* Stop words are the words in a stop list (or stop list or negative dictionary) which are filtered out (stopped) before or after processing of natural language data (text) because they are insignificant
|
|
8
8
|
* @param requestBody
|
|
9
9
|
* @param languageRouting
|
|
10
|
+
* @param sourceRouting
|
|
10
11
|
* @returns void
|
|
11
12
|
* @throws ApiError
|
|
12
13
|
*/
|
|
13
|
-
upsertStopwordHandler(requestBody, languageRouting) {
|
|
14
|
+
upsertStopwordHandler(requestBody, languageRouting, sourceRouting) {
|
|
14
15
|
return this.httpRequest.request({
|
|
15
16
|
method: 'PUT',
|
|
16
17
|
url: '/resources/stopwords',
|
|
17
18
|
query: {
|
|
18
19
|
'language_routing': languageRouting,
|
|
20
|
+
'source_routing': sourceRouting,
|
|
19
21
|
},
|
|
20
22
|
body: requestBody,
|
|
21
23
|
mediaType: 'text/plain',
|
|
22
24
|
});
|
|
23
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Delete stop words
|
|
28
|
+
* @param languageRouting
|
|
29
|
+
* @param sourceRouting
|
|
30
|
+
* @returns void
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
deleteStopwordHandler(languageRouting, sourceRouting) {
|
|
34
|
+
return this.httpRequest.request({
|
|
35
|
+
method: 'DELETE',
|
|
36
|
+
url: '/resources/stopwords',
|
|
37
|
+
query: {
|
|
38
|
+
'language_routing': languageRouting,
|
|
39
|
+
'source_routing': sourceRouting,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
24
43
|
/**
|
|
25
44
|
* Store synonyms
|
|
26
45
|
* When you write a query, you can use synonyms to expand the keywords to get results that users otherwise may not have found.
|
|
@@ -29,21 +48,40 @@ export class ResourcesService {
|
|
|
29
48
|
* This happens when you store synonyms in Optimizely Graph and enable them per field in your query. Otherwise, many relevant results may not be retrieved.
|
|
30
49
|
* @param requestBody
|
|
31
50
|
* @param languageRouting
|
|
51
|
+
* @param sourceRouting
|
|
32
52
|
* @param synonymSlot
|
|
33
53
|
* @returns void
|
|
34
54
|
* @throws ApiError
|
|
35
55
|
*/
|
|
36
|
-
upsertSynonymHandler(requestBody, languageRouting, synonymSlot = 'one') {
|
|
56
|
+
upsertSynonymHandler(requestBody, languageRouting, sourceRouting, synonymSlot = 'one') {
|
|
37
57
|
return this.httpRequest.request({
|
|
38
58
|
method: 'PUT',
|
|
39
59
|
url: '/resources/synonyms',
|
|
40
60
|
query: {
|
|
41
61
|
'language_routing': languageRouting,
|
|
62
|
+
'source_routing': sourceRouting,
|
|
42
63
|
'synonym_slot': synonymSlot,
|
|
43
64
|
},
|
|
44
65
|
body: requestBody,
|
|
45
66
|
mediaType: 'text/plain',
|
|
46
67
|
});
|
|
47
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Delete synonyms
|
|
71
|
+
* @param languageRouting
|
|
72
|
+
* @param sourceRouting
|
|
73
|
+
* @returns void
|
|
74
|
+
* @throws ApiError
|
|
75
|
+
*/
|
|
76
|
+
deleteSynonymHandler(languageRouting, sourceRouting) {
|
|
77
|
+
return this.httpRequest.request({
|
|
78
|
+
method: 'DELETE',
|
|
79
|
+
url: '/resources/synonyms',
|
|
80
|
+
query: {
|
|
81
|
+
'language_routing': languageRouting,
|
|
82
|
+
'source_routing': sourceRouting,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
48
86
|
}
|
|
49
87
|
//# sourceMappingURL=ResourcesService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourcesService.js","sourceRoot":"","sources":["../../../../src/admin-api/client/services/ResourcesService.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,gBAAgB;IACzB,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D
|
|
1
|
+
{"version":3,"file":"ResourcesService.js","sourceRoot":"","sources":["../../../../src/admin-api/client/services/ResourcesService.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,gBAAgB;IACzB,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;;;OAQG;IACI,qBAAqB,CACxB,WAA0B,EAC1B,eAAwB,EACxB,aAAsB;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,sBAAsB;YAC3B,KAAK,EAAE;gBACH,kBAAkB,EAAE,eAAe;gBACnC,gBAAgB,EAAE,aAAa;aAClC;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,YAAY;SAC1B,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,qBAAqB,CACxB,eAAwB,EACxB,aAAsB;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,sBAAsB;YAC3B,KAAK,EAAE;gBACH,kBAAkB,EAAE,eAAe;gBACnC,gBAAgB,EAAE,aAAa;aAClC;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;;;;;;OAYG;IACI,oBAAoB,CACvB,WAAyB,EACzB,eAAwB,EACxB,aAAsB,EACtB,cAA6B,KAAK;QAElC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,qBAAqB;YAC1B,KAAK,EAAE;gBACH,kBAAkB,EAAE,eAAe;gBACnC,gBAAgB,EAAE,aAAa;gBAC/B,cAAc,EAAE,WAAW;aAC9B;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,YAAY;SAC1B,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,oBAAoB,CACvB,eAAwB,EACxB,aAAsB;QAEtB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,qBAAqB;YAC1B,KAAK,EAAE;gBACH,kBAAkB,EAAE,eAAe;gBACnC,gBAAgB,EAAE,aAAa;aAClC;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -6,33 +6,35 @@ export declare class WebhooksService {
|
|
|
6
6
|
readonly httpRequest: BaseHttpRequest;
|
|
7
7
|
constructor(httpRequest: BaseHttpRequest);
|
|
8
8
|
/**
|
|
9
|
-
* List
|
|
9
|
+
* List webhooks
|
|
10
10
|
* List all registered webhooks
|
|
11
11
|
* @returns Webhook Ok
|
|
12
12
|
* @throws ApiError
|
|
13
13
|
*/
|
|
14
14
|
listWebhookHandler(): CancelablePromise<Array<Webhook>>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* Register a webhook and listen events respect to filter definition
|
|
16
|
+
* Add webhook
|
|
17
|
+
* Register a webhook and listen events respect to filter definition
|
|
18
|
+
*
|
|
19
|
+
* ---
|
|
18
20
|
*
|
|
19
|
-
*
|
|
21
|
+
* _(empty filter): listen all events_
|
|
20
22
|
* @param requestBody
|
|
21
23
|
* @returns void
|
|
22
24
|
* @throws ApiError
|
|
23
25
|
*/
|
|
24
26
|
createWebhookHandler(requestBody: WebhookPayload): CancelablePromise<void>;
|
|
25
27
|
/**
|
|
26
|
-
* Delete
|
|
27
|
-
* Delete a registered webhook
|
|
28
|
+
* Delete webhook
|
|
29
|
+
* Delete a registered webhook with `id`
|
|
28
30
|
* @param id
|
|
29
31
|
* @returns void
|
|
30
32
|
* @throws ApiError
|
|
31
33
|
*/
|
|
32
34
|
deleteWebhookHandler(id: string): CancelablePromise<void>;
|
|
33
35
|
/**
|
|
34
|
-
* Update
|
|
35
|
-
* Update a registered webhook
|
|
36
|
+
* Update webhook
|
|
37
|
+
* Update a registered webhook with `id`
|
|
36
38
|
* @param id
|
|
37
39
|
* @param requestBody
|
|
38
40
|
* @returns void
|
|
@@ -3,7 +3,7 @@ export class WebhooksService {
|
|
|
3
3
|
this.httpRequest = httpRequest;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
* List
|
|
6
|
+
* List webhooks
|
|
7
7
|
* List all registered webhooks
|
|
8
8
|
* @returns Webhook Ok
|
|
9
9
|
* @throws ApiError
|
|
@@ -15,10 +15,12 @@ export class WebhooksService {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
* Register a webhook and listen events respect to filter definition
|
|
18
|
+
* Add webhook
|
|
19
|
+
* Register a webhook and listen events respect to filter definition
|
|
20
|
+
*
|
|
21
|
+
* ---
|
|
20
22
|
*
|
|
21
|
-
*
|
|
23
|
+
* _(empty filter): listen all events_
|
|
22
24
|
* @param requestBody
|
|
23
25
|
* @returns void
|
|
24
26
|
* @throws ApiError
|
|
@@ -32,8 +34,8 @@ export class WebhooksService {
|
|
|
32
34
|
});
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
|
-
* Delete
|
|
36
|
-
* Delete a registered webhook
|
|
37
|
+
* Delete webhook
|
|
38
|
+
* Delete a registered webhook with `id`
|
|
37
39
|
* @param id
|
|
38
40
|
* @returns void
|
|
39
41
|
* @throws ApiError
|
|
@@ -48,8 +50,8 @@ export class WebhooksService {
|
|
|
48
50
|
});
|
|
49
51
|
}
|
|
50
52
|
/**
|
|
51
|
-
* Update
|
|
52
|
-
* Update a registered webhook
|
|
53
|
+
* Update webhook
|
|
54
|
+
* Update a registered webhook with `id`
|
|
53
55
|
* @param id
|
|
54
56
|
* @param requestBody
|
|
55
57
|
* @returns void
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebhooksService.js","sourceRoot":"","sources":["../../../../src/admin-api/client/services/WebhooksService.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,eAAe;IACxB,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,kBAAkB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,eAAe;SACvB,CAAC,CAAC;IACP,CAAC;IACD
|
|
1
|
+
{"version":3,"file":"WebhooksService.js","sourceRoot":"","sources":["../../../../src/admin-api/client/services/WebhooksService.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,eAAe;IACxB,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,kBAAkB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,eAAe;SACvB,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;;;;OAUG;IACI,oBAAoB,CACvB,WAA2B;QAE3B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,eAAe;YACpB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,oBAAoB,CACvB,EAAU;QAEV,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,oBAAoB;YACzB,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,oBAAoB,CACvB,EAAU,EACV,WAA2B;QAE3B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,oBAAoB;YACzB,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remkoj/optimizely-graph-client",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.5",
|
|
5
5
|
"packageManager": "yarn@4.1.1",
|
|
6
6
|
"repository": "https://github.com/remkoj/optimizely-dxp-clients.git",
|
|
7
7
|
"author": "Remko Jantzen <693172+remkoj@users.noreply.github.com>",
|