@extrahorizon/exh-cli 1.5.0 → 1.5.1-dev-27-7bdff2e

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.
Files changed (92) hide show
  1. package/CHANGELOG.md +56 -53
  2. package/README.md +0 -12
  3. package/build/commands/completion.d.ts +5 -5
  4. package/build/commands/completion.js +38 -38
  5. package/build/commands/data/schemas/delete.d.ts +10 -10
  6. package/build/commands/data/schemas/delete.js +29 -29
  7. package/build/commands/data/schemas/list.d.ts +8 -8
  8. package/build/commands/data/schemas/list.js +20 -20
  9. package/build/commands/data/schemas/sync/statusHelpers.d.ts +3 -3
  10. package/build/commands/data/schemas/sync/statusHelpers.js +49 -49
  11. package/build/commands/data/schemas/sync.d.ts +35 -35
  12. package/build/commands/data/schemas/sync.js +72 -72
  13. package/build/commands/data/schemas/util/listFilesInDir.d.ts +1 -1
  14. package/build/commands/data/schemas/util/listFilesInDir.js +25 -25
  15. package/build/commands/data/schemas/util/metaschema.json +455 -455
  16. package/build/commands/data/schemas/util/readJson.d.ts +1 -1
  17. package/build/commands/data/schemas/util/readJson.js +11 -11
  18. package/build/commands/data/schemas/util/schemaverify.d.ts +28 -28
  19. package/build/commands/data/schemas/util/schemaverify.js +202 -202
  20. package/build/commands/data/schemas/util/syncSchema.d.ts +20 -20
  21. package/build/commands/data/schemas/util/syncSchema.js +276 -276
  22. package/build/commands/data/schemas/util/tests/listFilesInDir.test.d.ts +1 -1
  23. package/build/commands/data/schemas/util/tests/listFilesInDir.test.js +40 -40
  24. package/build/commands/data/schemas/verify.d.ts +18 -18
  25. package/build/commands/data/schemas/verify.js +82 -82
  26. package/build/commands/data/schemas.d.ts +5 -5
  27. package/build/commands/data/schemas.js +10 -10
  28. package/build/commands/data.d.ts +5 -5
  29. package/build/commands/data.js +10 -10
  30. package/build/commands/dispatchers/sync.d.ts +21 -21
  31. package/build/commands/dispatchers/sync.js +24 -24
  32. package/build/commands/dispatchers.d.ts +5 -5
  33. package/build/commands/dispatchers.js +10 -10
  34. package/build/commands/login.d.ts +37 -37
  35. package/build/commands/login.js +59 -59
  36. package/build/commands/sync.d.ts +55 -55
  37. package/build/commands/sync.js +107 -107
  38. package/build/commands/tasks/createrepo.d.ts +22 -22
  39. package/build/commands/tasks/createrepo.js +70 -70
  40. package/build/commands/tasks/delete.d.ts +10 -10
  41. package/build/commands/tasks/delete.js +29 -29
  42. package/build/commands/tasks/list.d.ts +8 -8
  43. package/build/commands/tasks/list.js +27 -27
  44. package/build/commands/tasks/sync.d.ts +56 -56
  45. package/build/commands/tasks/sync.js +122 -122
  46. package/build/commands/tasks/taskConfig.d.ts +24 -24
  47. package/build/commands/tasks/taskConfig.js +169 -169
  48. package/build/commands/tasks/util.d.ts +1 -1
  49. package/build/commands/tasks/util.js +27 -27
  50. package/build/commands/tasks.d.ts +5 -5
  51. package/build/commands/tasks.js +10 -10
  52. package/build/commands/templates/delete.d.ts +19 -19
  53. package/build/commands/templates/delete.js +48 -48
  54. package/build/commands/templates/get.d.ts +19 -19
  55. package/build/commands/templates/get.js +37 -37
  56. package/build/commands/templates/list.d.ts +9 -9
  57. package/build/commands/templates/list.js +25 -25
  58. package/build/commands/templates/sync.d.ts +22 -22
  59. package/build/commands/templates/sync.js +65 -65
  60. package/build/commands/templates/util/buildTemplates.d.ts +2 -2
  61. package/build/commands/templates/util/buildTemplates.js +50 -50
  62. package/build/commands/templates/util/readTemplateFiles.d.ts +3 -3
  63. package/build/commands/templates/util/readTemplateFiles.js +52 -52
  64. package/build/commands/templates/util/templateService.d.ts +8 -8
  65. package/build/commands/templates/util/templateService.js +18 -18
  66. package/build/commands/templates/util/uploadTemplate.d.ts +2 -2
  67. package/build/commands/templates/util/uploadTemplate.js +20 -20
  68. package/build/commands/templates/util/utils.d.ts +4 -4
  69. package/build/commands/templates/util/utils.js +22 -22
  70. package/build/commands/templates.d.ts +5 -5
  71. package/build/commands/templates.js +10 -10
  72. package/build/constants.d.ts +13 -13
  73. package/build/constants.js +37 -37
  74. package/build/exh.d.ts +3 -3
  75. package/build/exh.js +65 -65
  76. package/build/helpers/error.d.ts +2 -2
  77. package/build/helpers/error.js +6 -6
  78. package/build/helpers/repoConfig.d.ts +2 -2
  79. package/build/helpers/repoConfig.js +60 -60
  80. package/build/helpers/util.d.ts +3 -3
  81. package/build/helpers/util.js +36 -36
  82. package/build/index.d.ts +2 -2
  83. package/build/index.js +33 -33
  84. package/build/repositories/dispatchers.d.ts +8 -8
  85. package/build/repositories/dispatchers.js +31 -31
  86. package/build/repositories/functions.d.ts +24 -24
  87. package/build/repositories/functions.js +28 -28
  88. package/build/repositories/schemas.d.ts +44 -44
  89. package/build/repositories/schemas.js +86 -86
  90. package/build/services/dispatchers.d.ts +3 -3
  91. package/build/services/dispatchers.js +132 -132
  92. package/package.json +53 -53
@@ -1,31 +1,31 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeAction = exports.updateAction = exports.createAction = exports.remove = exports.update = exports.findAll = exports.create = void 0;
4
- async function create(sdk, data) {
5
- return await sdk.dispatchers.create(data);
6
- }
7
- exports.create = create;
8
- async function findAll(sdk, rql) {
9
- return await sdk.dispatchers.findAll({ rql });
10
- }
11
- exports.findAll = findAll;
12
- async function update(sdk, dispatcherId, data) {
13
- return await sdk.dispatchers.update(dispatcherId, data);
14
- }
15
- exports.update = update;
16
- async function remove(sdk, dispatcherId) {
17
- return await sdk.dispatchers.remove(dispatcherId);
18
- }
19
- exports.remove = remove;
20
- async function createAction(sdk, dispatcherId, data) {
21
- return await sdk.dispatchers.actions.create(dispatcherId, data);
22
- }
23
- exports.createAction = createAction;
24
- async function updateAction(sdk, dispatcherId, actionId, data) {
25
- return await sdk.dispatchers.actions.update(dispatcherId, actionId, data);
26
- }
27
- exports.updateAction = updateAction;
28
- async function removeAction(sdk, dispatcherId, actionId) {
29
- return await sdk.dispatchers.actions.remove(dispatcherId, actionId);
30
- }
31
- exports.removeAction = removeAction;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeAction = exports.updateAction = exports.createAction = exports.remove = exports.update = exports.findAll = exports.create = void 0;
4
+ async function create(sdk, data) {
5
+ return await sdk.dispatchers.create(data);
6
+ }
7
+ exports.create = create;
8
+ async function findAll(sdk, rql) {
9
+ return await sdk.dispatchers.findAll({ rql });
10
+ }
11
+ exports.findAll = findAll;
12
+ async function update(sdk, dispatcherId, data) {
13
+ return await sdk.dispatchers.update(dispatcherId, data);
14
+ }
15
+ exports.update = update;
16
+ async function remove(sdk, dispatcherId) {
17
+ return await sdk.dispatchers.remove(dispatcherId);
18
+ }
19
+ exports.remove = remove;
20
+ async function createAction(sdk, dispatcherId, data) {
21
+ return await sdk.dispatchers.actions.create(dispatcherId, data);
22
+ }
23
+ exports.createAction = createAction;
24
+ async function updateAction(sdk, dispatcherId, actionId, data) {
25
+ return await sdk.dispatchers.actions.update(dispatcherId, actionId, data);
26
+ }
27
+ exports.updateAction = updateAction;
28
+ async function removeAction(sdk, dispatcherId, actionId) {
29
+ return await sdk.dispatchers.actions.remove(dispatcherId, actionId);
30
+ }
31
+ exports.removeAction = removeAction;
@@ -1,24 +1,24 @@
1
- import { OAuth1Client } from '@extrahorizon/javascript-sdk';
2
- import { permissionModes } from '../commands/tasks/taskConfig';
3
- export interface FunctionCreation {
4
- name: string;
5
- description: string;
6
- entryPoint: string;
7
- code: string;
8
- runtime: string;
9
- timeLimit?: number;
10
- memoryLimit?: number;
11
- environmentVariables?: Record<string, any>;
12
- executionOptions?: {
13
- permissionMode: permissionModes;
14
- };
15
- retryPolicy?: {
16
- enabled: boolean;
17
- errorsToRetry: string[];
18
- };
19
- }
20
- export declare function find(sdk: OAuth1Client): Promise<any>;
21
- export declare function findByName(sdk: OAuth1Client, name: string): Promise<any>;
22
- export declare function create(sdk: OAuth1Client, data: FunctionCreation): Promise<any>;
23
- export declare function update(sdk: OAuth1Client, data: FunctionCreation): Promise<any>;
24
- export declare function remove(sdk: OAuth1Client, name: string): Promise<any>;
1
+ import { OAuth1Client } from '@extrahorizon/javascript-sdk';
2
+ import { permissionModes } from '../commands/tasks/taskConfig';
3
+ export interface FunctionCreation {
4
+ name: string;
5
+ description: string;
6
+ entryPoint: string;
7
+ code: string;
8
+ runtime: string;
9
+ timeLimit?: number;
10
+ memoryLimit?: number;
11
+ environmentVariables?: Record<string, any>;
12
+ executionOptions?: {
13
+ permissionMode: permissionModes;
14
+ };
15
+ retryPolicy?: {
16
+ enabled: boolean;
17
+ errorsToRetry: string[];
18
+ };
19
+ }
20
+ export declare function find(sdk: OAuth1Client): Promise<any>;
21
+ export declare function findByName(sdk: OAuth1Client, name: string): Promise<any>;
22
+ export declare function create(sdk: OAuth1Client, data: FunctionCreation): Promise<any>;
23
+ export declare function update(sdk: OAuth1Client, data: FunctionCreation): Promise<any>;
24
+ export declare function remove(sdk: OAuth1Client, name: string): Promise<any>;
@@ -1,28 +1,28 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.remove = exports.update = exports.create = exports.findByName = exports.find = void 0;
4
- async function find(sdk) {
5
- const response = await sdk.raw.get('/tasks/v1/functions');
6
- return response.data.data;
7
- }
8
- exports.find = find;
9
- async function findByName(sdk, name) {
10
- const response = await sdk.raw.get(`/tasks/v1/functions/${name}`);
11
- return response.data;
12
- }
13
- exports.findByName = findByName;
14
- async function create(sdk, data) {
15
- const response = await sdk.raw.post('/tasks/v1/functions', data);
16
- return response.data;
17
- }
18
- exports.create = create;
19
- async function update(sdk, data) {
20
- const response = await sdk.raw.put(`/tasks/v1/functions/${data.name}`, data);
21
- return response.data;
22
- }
23
- exports.update = update;
24
- async function remove(sdk, name) {
25
- const response = await sdk.raw.delete(`/tasks/v1/functions/${name}`);
26
- return response.data;
27
- }
28
- exports.remove = remove;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.remove = exports.update = exports.create = exports.findByName = exports.find = void 0;
4
+ async function find(sdk) {
5
+ const response = await sdk.raw.get('/tasks/v1/functions');
6
+ return response.data.data;
7
+ }
8
+ exports.find = find;
9
+ async function findByName(sdk, name) {
10
+ const response = await sdk.raw.get(`/tasks/v1/functions/${name}`);
11
+ return response.data;
12
+ }
13
+ exports.findByName = findByName;
14
+ async function create(sdk, data) {
15
+ const response = await sdk.raw.post('/tasks/v1/functions', data);
16
+ return response.data;
17
+ }
18
+ exports.create = create;
19
+ async function update(sdk, data) {
20
+ const response = await sdk.raw.put(`/tasks/v1/functions/${data.name}`, data);
21
+ return response.data;
22
+ }
23
+ exports.update = update;
24
+ async function remove(sdk, name) {
25
+ const response = await sdk.raw.delete(`/tasks/v1/functions/${name}`);
26
+ return response.data;
27
+ }
28
+ exports.remove = remove;
@@ -1,44 +1,44 @@
1
- import { OAuth1Client, ObjectId } from '@extrahorizon/javascript-sdk';
2
- interface Transition {
3
- name: string;
4
- type: string;
5
- fromStatuses: string[];
6
- toStatus: string;
7
- conditions: {
8
- type: string;
9
- };
10
- actions: {
11
- type: string;
12
- };
13
- afterActions: {
14
- type: string;
15
- };
16
- }
17
- export declare function remove(sdk: OAuth1Client, schemaId: ObjectId): Promise<import("@extrahorizon/javascript-sdk").AffectedRecords>;
18
- export declare function disable(sdk: OAuth1Client, schemaId: ObjectId): Promise<import("@extrahorizon/javascript-sdk").AffectedRecords>;
19
- export declare function fetchSchemaByName(sdk: OAuth1Client, name: string): Promise<import("@extrahorizon/javascript-sdk").Schema>;
20
- export declare function createSchema(sdk: OAuth1Client, name: string, description: string): Promise<import("@extrahorizon/javascript-sdk").Schema>;
21
- export declare function updateSchema(sdk: OAuth1Client, id: string, data: any): Promise<import("@extrahorizon/javascript-sdk").AffectedRecords>;
22
- export declare function createProperty(sdk: OAuth1Client, id: string, data: {
23
- name: string;
24
- configuration: {
25
- type: string;
26
- };
27
- }): Promise<any>;
28
- export declare function updateProperty(sdk: OAuth1Client, id: string, path: string, data: {
29
- name: string;
30
- configuration: {
31
- type: string;
32
- };
33
- }): Promise<any>;
34
- export declare function deleteProperty(sdk: OAuth1Client, id: string, path: string): Promise<any>;
35
- export declare function createStatus(sdk: OAuth1Client, id: string, name: string, data: object): Promise<any>;
36
- export declare function updateStatus(sdk: OAuth1Client, id: string, name: string, data: object): Promise<any>;
37
- export declare function deleteStatus(sdk: OAuth1Client, id: string, name: string): Promise<any>;
38
- export declare function updateCreationTransition(sdk: OAuth1Client, id: string, data: Transition): Promise<any>;
39
- export declare function createTransition(sdk: OAuth1Client, id: string, data: Transition): Promise<any>;
40
- export declare function updateTransition(sdk: OAuth1Client, schemaId: string, transitionId: string, data: Transition): Promise<any>;
41
- export declare function deleteTransition(sdk: OAuth1Client, schemaId: string, transitionId: string): Promise<any>;
42
- export declare function createIndex(sdk: OAuth1Client, schemaId: string, index: any): Promise<any>;
43
- export declare function deleteIndex(sdk: OAuth1Client, schemaId: string, indexId: string): Promise<any>;
44
- export {};
1
+ import { OAuth1Client, ObjectId } from '@extrahorizon/javascript-sdk';
2
+ interface Transition {
3
+ name: string;
4
+ type: string;
5
+ fromStatuses: string[];
6
+ toStatus: string;
7
+ conditions: {
8
+ type: string;
9
+ };
10
+ actions: {
11
+ type: string;
12
+ };
13
+ afterActions: {
14
+ type: string;
15
+ };
16
+ }
17
+ export declare function remove(sdk: OAuth1Client, schemaId: ObjectId): Promise<import("@extrahorizon/javascript-sdk").AffectedRecords>;
18
+ export declare function disable(sdk: OAuth1Client, schemaId: ObjectId): Promise<import("@extrahorizon/javascript-sdk").AffectedRecords>;
19
+ export declare function fetchSchemaByName(sdk: OAuth1Client, name: string): Promise<import("@extrahorizon/javascript-sdk").Schema>;
20
+ export declare function createSchema(sdk: OAuth1Client, name: string, description: string): Promise<import("@extrahorizon/javascript-sdk").Schema>;
21
+ export declare function updateSchema(sdk: OAuth1Client, id: string, data: any): Promise<import("@extrahorizon/javascript-sdk").AffectedRecords>;
22
+ export declare function createProperty(sdk: OAuth1Client, id: string, data: {
23
+ name: string;
24
+ configuration: {
25
+ type: string;
26
+ };
27
+ }): Promise<any>;
28
+ export declare function updateProperty(sdk: OAuth1Client, id: string, path: string, data: {
29
+ name: string;
30
+ configuration: {
31
+ type: string;
32
+ };
33
+ }): Promise<any>;
34
+ export declare function deleteProperty(sdk: OAuth1Client, id: string, path: string): Promise<any>;
35
+ export declare function createStatus(sdk: OAuth1Client, id: string, name: string, data: object): Promise<any>;
36
+ export declare function updateStatus(sdk: OAuth1Client, id: string, name: string, data: object): Promise<any>;
37
+ export declare function deleteStatus(sdk: OAuth1Client, id: string, name: string): Promise<any>;
38
+ export declare function updateCreationTransition(sdk: OAuth1Client, id: string, data: Transition): Promise<any>;
39
+ export declare function createTransition(sdk: OAuth1Client, id: string, data: Transition): Promise<any>;
40
+ export declare function updateTransition(sdk: OAuth1Client, schemaId: string, transitionId: string, data: Transition): Promise<any>;
41
+ export declare function deleteTransition(sdk: OAuth1Client, schemaId: string, transitionId: string): Promise<any>;
42
+ export declare function createIndex(sdk: OAuth1Client, schemaId: string, index: any): Promise<any>;
43
+ export declare function deleteIndex(sdk: OAuth1Client, schemaId: string, indexId: string): Promise<any>;
44
+ export {};
@@ -1,86 +1,86 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteIndex = exports.createIndex = exports.deleteTransition = exports.updateTransition = exports.createTransition = exports.updateCreationTransition = exports.deleteStatus = exports.updateStatus = exports.createStatus = exports.deleteProperty = exports.updateProperty = exports.createProperty = exports.updateSchema = exports.createSchema = exports.fetchSchemaByName = exports.disable = exports.remove = void 0;
4
- async function remove(sdk, schemaId) {
5
- return await sdk.data.schemas.remove(schemaId);
6
- }
7
- exports.remove = remove;
8
- async function disable(sdk, schemaId) {
9
- return await sdk.data.schemas.disable(schemaId);
10
- }
11
- exports.disable = disable;
12
- async function fetchSchemaByName(sdk, name) {
13
- return await sdk.data.schemas.findByName(name);
14
- }
15
- exports.fetchSchemaByName = fetchSchemaByName;
16
- async function createSchema(sdk, name, description) {
17
- return await sdk.data.schemas.create({
18
- name,
19
- description,
20
- });
21
- }
22
- exports.createSchema = createSchema;
23
- async function updateSchema(sdk, id, data) {
24
- return await sdk.data.schemas.update(id, data);
25
- }
26
- exports.updateSchema = updateSchema;
27
- async function createProperty(sdk, id, data) {
28
- const response = await sdk.raw.post(`/data/v1/${id}/properties`, data);
29
- return response.data;
30
- }
31
- exports.createProperty = createProperty;
32
- async function updateProperty(sdk, id, path, data) {
33
- const response = await sdk.raw.put(`/data/v1/${id}/properties/${path}`, data);
34
- return response.data;
35
- }
36
- exports.updateProperty = updateProperty;
37
- async function deleteProperty(sdk, id, path) {
38
- const response = await sdk.raw.delete(`/data/v1/${id}/properties/${path}`);
39
- return response.data;
40
- }
41
- exports.deleteProperty = deleteProperty;
42
- async function createStatus(sdk, id, name, data) {
43
- const response = await sdk.raw.post(`/data/v1/${id}/statuses`, { name, data });
44
- return response.data;
45
- }
46
- exports.createStatus = createStatus;
47
- async function updateStatus(sdk, id, name, data) {
48
- const response = await sdk.raw.put(`/data/v1/${id}/statuses/${name}`, { data });
49
- return response.data;
50
- }
51
- exports.updateStatus = updateStatus;
52
- async function deleteStatus(sdk, id, name) {
53
- const response = await sdk.raw.delete(`/data/v1/${id}/statuses/${name}`);
54
- return response.data;
55
- }
56
- exports.deleteStatus = deleteStatus;
57
- async function updateCreationTransition(sdk, id, data) {
58
- const response = await sdk.raw.put(`/data/v1/${id}/creationTransition`, data);
59
- return response.data;
60
- }
61
- exports.updateCreationTransition = updateCreationTransition;
62
- async function createTransition(sdk, id, data) {
63
- const response = await sdk.raw.post(`/data/v1/${id}/transitions`, data);
64
- return response.data;
65
- }
66
- exports.createTransition = createTransition;
67
- async function updateTransition(sdk, schemaId, transitionId, data) {
68
- const response = await sdk.raw.put(`/data/v1/${schemaId}/transitions/${transitionId}`, data);
69
- return response.data;
70
- }
71
- exports.updateTransition = updateTransition;
72
- async function deleteTransition(sdk, schemaId, transitionId) {
73
- const response = await sdk.raw.delete(`/data/v1/${schemaId}/transitions/${transitionId}`);
74
- return response.data;
75
- }
76
- exports.deleteTransition = deleteTransition;
77
- async function createIndex(sdk, schemaId, index) {
78
- const response = await sdk.raw.post(`/data/v1/${schemaId}/indexes`, index);
79
- return response.data;
80
- }
81
- exports.createIndex = createIndex;
82
- async function deleteIndex(sdk, schemaId, indexId) {
83
- const response = await sdk.raw.delete(`/data/v1/${schemaId}/indexes/${indexId}`);
84
- return response.data;
85
- }
86
- exports.deleteIndex = deleteIndex;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteIndex = exports.createIndex = exports.deleteTransition = exports.updateTransition = exports.createTransition = exports.updateCreationTransition = exports.deleteStatus = exports.updateStatus = exports.createStatus = exports.deleteProperty = exports.updateProperty = exports.createProperty = exports.updateSchema = exports.createSchema = exports.fetchSchemaByName = exports.disable = exports.remove = void 0;
4
+ async function remove(sdk, schemaId) {
5
+ return await sdk.data.schemas.remove(schemaId);
6
+ }
7
+ exports.remove = remove;
8
+ async function disable(sdk, schemaId) {
9
+ return await sdk.data.schemas.disable(schemaId);
10
+ }
11
+ exports.disable = disable;
12
+ async function fetchSchemaByName(sdk, name) {
13
+ return await sdk.data.schemas.findByName(name);
14
+ }
15
+ exports.fetchSchemaByName = fetchSchemaByName;
16
+ async function createSchema(sdk, name, description) {
17
+ return await sdk.data.schemas.create({
18
+ name,
19
+ description,
20
+ });
21
+ }
22
+ exports.createSchema = createSchema;
23
+ async function updateSchema(sdk, id, data) {
24
+ return await sdk.data.schemas.update(id, data);
25
+ }
26
+ exports.updateSchema = updateSchema;
27
+ async function createProperty(sdk, id, data) {
28
+ const response = await sdk.raw.post(`/data/v1/${id}/properties`, data);
29
+ return response.data;
30
+ }
31
+ exports.createProperty = createProperty;
32
+ async function updateProperty(sdk, id, path, data) {
33
+ const response = await sdk.raw.put(`/data/v1/${id}/properties/${path}`, data);
34
+ return response.data;
35
+ }
36
+ exports.updateProperty = updateProperty;
37
+ async function deleteProperty(sdk, id, path) {
38
+ const response = await sdk.raw.delete(`/data/v1/${id}/properties/${path}`);
39
+ return response.data;
40
+ }
41
+ exports.deleteProperty = deleteProperty;
42
+ async function createStatus(sdk, id, name, data) {
43
+ const response = await sdk.raw.post(`/data/v1/${id}/statuses`, { name, data });
44
+ return response.data;
45
+ }
46
+ exports.createStatus = createStatus;
47
+ async function updateStatus(sdk, id, name, data) {
48
+ const response = await sdk.raw.put(`/data/v1/${id}/statuses/${name}`, { data });
49
+ return response.data;
50
+ }
51
+ exports.updateStatus = updateStatus;
52
+ async function deleteStatus(sdk, id, name) {
53
+ const response = await sdk.raw.delete(`/data/v1/${id}/statuses/${name}`);
54
+ return response.data;
55
+ }
56
+ exports.deleteStatus = deleteStatus;
57
+ async function updateCreationTransition(sdk, id, data) {
58
+ const response = await sdk.raw.put(`/data/v1/${id}/creationTransition`, data);
59
+ return response.data;
60
+ }
61
+ exports.updateCreationTransition = updateCreationTransition;
62
+ async function createTransition(sdk, id, data) {
63
+ const response = await sdk.raw.post(`/data/v1/${id}/transitions`, data);
64
+ return response.data;
65
+ }
66
+ exports.createTransition = createTransition;
67
+ async function updateTransition(sdk, schemaId, transitionId, data) {
68
+ const response = await sdk.raw.put(`/data/v1/${schemaId}/transitions/${transitionId}`, data);
69
+ return response.data;
70
+ }
71
+ exports.updateTransition = updateTransition;
72
+ async function deleteTransition(sdk, schemaId, transitionId) {
73
+ const response = await sdk.raw.delete(`/data/v1/${schemaId}/transitions/${transitionId}`);
74
+ return response.data;
75
+ }
76
+ exports.deleteTransition = deleteTransition;
77
+ async function createIndex(sdk, schemaId, index) {
78
+ const response = await sdk.raw.post(`/data/v1/${schemaId}/indexes`, index);
79
+ return response.data;
80
+ }
81
+ exports.createIndex = createIndex;
82
+ async function deleteIndex(sdk, schemaId, indexId) {
83
+ const response = await sdk.raw.delete(`/data/v1/${schemaId}/indexes/${indexId}`);
84
+ return response.data;
85
+ }
86
+ exports.deleteIndex = deleteIndex;
@@ -1,3 +1,3 @@
1
- import { OAuth1Client } from '@extrahorizon/javascript-sdk';
2
- export declare const cliManagedTag = "EXH_CLI_MANAGED";
3
- export declare function sync(sdk: OAuth1Client, path: string, clean?: boolean): Promise<void>;
1
+ import { OAuth1Client } from '@extrahorizon/javascript-sdk';
2
+ export declare const cliManagedTag = "EXH_CLI_MANAGED";
3
+ export declare function sync(sdk: OAuth1Client, path: string, clean?: boolean): Promise<void>;