@or-sdk/billing 30.4.2 → 30.4.3-beta.11790.0

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.
@@ -73,6 +73,20 @@ var FlowsApi = (function (_super) {
73
73
  });
74
74
  });
75
75
  };
76
+ FlowsApi.prototype.startDeploymentAction = function (flowId, data) {
77
+ return __awaiter(this, void 0, void 0, function () {
78
+ return __generator(this, function (_a) {
79
+ switch (_a.label) {
80
+ case 0: return [4, this.apiCall({
81
+ method: 'POST',
82
+ route: "".concat(this.apiBasePath, "/").concat(encodeURIComponent(flowId), "/deployment-actions"),
83
+ data: data,
84
+ })];
85
+ case 1: return [2, _a.sent()];
86
+ }
87
+ });
88
+ });
89
+ };
76
90
  return FlowsApi;
77
91
  }(baseApi_1.BaseApi));
78
92
  exports.default = FlowsApi;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/flowsApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sCAAqC;AAIrC;IAAsC,4BAAO;IAA7C;;QACmB,iBAAW,GAAG,OAAO,CAAC;;IA8BzC,CAAC;IAPc,4BAAS,GAAtB,UAAuB,MAAwB;;;;4BACtC,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,UAAO;4BACjC,MAAM,QAAA;yBACP,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IACH,eAAC;AAAD,CAAC,AA/BD,CAAsC,iBAAO,GA+B5C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/flowsApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,sCAAqC;AAIrC;IAAsC,4BAAO;IAA7C;;QACmB,iBAAW,GAAG,OAAO,CAAC;;IA8CzC,CAAC;IAtBc,4BAAS,GAAtB,UAAuB,MAAwB;;;;4BACtC,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,UAAO;4BACjC,MAAM,QAAA;yBACP,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAMY,wCAAqB,GAAlC,UACE,MAAc,EACd,IAAkC;;;;4BAE3B,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,MAAM;4BACd,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,cAAI,kBAAkB,CAAC,MAAM,CAAC,wBAAqB;4BAC7E,IAAI,MAAA;yBACL,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IACH,eAAC;AAAD,CAAC,AA/CD,CAAsC,iBAAO,GA+C5C"}
@@ -22,5 +22,14 @@ export default class FlowsApi extends BaseApi {
22
22
  });
23
23
  });
24
24
  }
25
+ startDeploymentAction(flowId, data) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ return yield this.apiCall({
28
+ method: 'POST',
29
+ route: `${this.apiBasePath}/${encodeURIComponent(flowId)}/deployment-actions`,
30
+ data,
31
+ });
32
+ });
33
+ }
25
34
  }
26
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/flowsApi/index.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,OAAO;IAA7C;;QACmB,gBAAW,GAAG,OAAO,CAAC;IA8BzC,CAAC;IAPc,SAAS,CAAC,MAAwB;;YAC7C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,OAAO;gBACjC,MAAM;aACP,CAAC,CAAC;QACL,CAAC;KAAA;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/flowsApi/index.ts"],"names":[],"mappings":";;;;;;;;;AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,OAAO;IAA7C;;QACmB,gBAAW,GAAG,OAAO,CAAC;IA8CzC,CAAC;IAtBc,SAAS,CAAC,MAAwB;;YAC7C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,OAAO;gBACjC,MAAM;aACP,CAAC,CAAC;QACL,CAAC;KAAA;IAMY,qBAAqB,CAChC,MAAc,EACd,IAAkC;;YAElC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,IAAI,kBAAkB,CAAC,MAAM,CAAC,qBAAqB;gBAC7E,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF"}
@@ -1,8 +1,9 @@
1
- import { FlowResponseDto } from '@onereach/billing-dto';
1
+ import type { FlowDeploymentActionResponseDto, FlowResponseDto, StartFlowDeploymentActionDto } from '@onereach/billing-dto';
2
2
  import { BaseApi } from '../baseApi';
3
3
  import { FlowsQueryParams } from './types';
4
4
  export default class FlowsApi extends BaseApi {
5
5
  private readonly apiBasePath;
6
6
  flowsList(params: FlowsQueryParams): Promise<FlowResponseDto>;
7
+ startDeploymentAction(flowId: string, data: StartFlowDeploymentActionDto): Promise<FlowDeploymentActionResponseDto>;
7
8
  }
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/flowsApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,OAAO;IAC3C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAW;IAuB1B,SAAS,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;CAO3E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/flowsApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,eAAe,EACf,4BAA4B,EAC7B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,OAAO;IAC3C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAW;IAwB1B,SAAS,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAY7D,qBAAqB,CAChC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,4BAA4B,GACjC,OAAO,CAAC,+BAA+B,CAAC;CAO5C"}
@@ -7,6 +7,7 @@ export type FlowDto = {
7
7
  label: string;
8
8
  studioUrl: string;
9
9
  isDeleted: boolean;
10
+ isActive?: boolean;
10
11
  };
11
12
  export type FlowsQueryParams = {
12
13
  accountId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/api/flowsApi/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,UAAU,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/api/flowsApi/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@or-sdk/billing",
3
- "version": "30.4.2",
3
+ "version": "30.4.3-beta.11790.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "dependencies": {
9
- "@onereach/billing-dto": "^30.4.2",
10
- "@onereach/billing-shared": "^30.4.2",
9
+ "@onereach/billing-dto": "^30.4.3-beta.11790.0",
10
+ "@onereach/billing-shared": "^30.4.3-beta.11790.0",
11
11
  "@or-sdk/base": "^0.42.4",
12
12
  "@or-sdk/discovery": "1.10.6",
13
13
  "@types/qs": "6.14.0",
@@ -1,4 +1,8 @@
1
- import { FlowResponseDto } from '@onereach/billing-dto';
1
+ import type {
2
+ FlowDeploymentActionResponseDto,
3
+ FlowResponseDto,
4
+ StartFlowDeploymentActionDto,
5
+ } from '@onereach/billing-dto';
2
6
 
3
7
  import { BaseApi } from '../baseApi';
4
8
 
@@ -25,6 +29,7 @@ export default class FlowsApi extends BaseApi {
25
29
  * - label: URL Flow name
26
30
  * - studioUrl: Studio URL
27
31
  * - isDeleted: Deleted flag
32
+ * - isActive: Whether the flow has an active deployment (live endpoint only)
28
33
  * - createdAt: Created date
29
34
  * - modifiedAt: Modified date
30
35
  */
@@ -35,4 +40,19 @@ export default class FlowsApi extends BaseApi {
35
40
  params,
36
41
  });
37
42
  }
43
+
44
+ /**
45
+ * Starts a non-blocking activation or deactivation for a flow.
46
+ * The live flows endpoint can be polled until the requested state is visible.
47
+ */
48
+ public async startDeploymentAction(
49
+ flowId: string,
50
+ data: StartFlowDeploymentActionDto,
51
+ ): Promise<FlowDeploymentActionResponseDto> {
52
+ return await this.apiCall({
53
+ method: 'POST',
54
+ route: `${this.apiBasePath}/${encodeURIComponent(flowId)}/deployment-actions`,
55
+ data,
56
+ });
57
+ }
38
58
  }
@@ -8,6 +8,7 @@ export type FlowDto = {
8
8
  label: string;
9
9
  studioUrl: string;
10
10
  isDeleted: boolean;
11
+ isActive?: boolean;
11
12
  };
12
13
 
13
14
  export type FlowsQueryParams = {