@novu/api 0.0.1-alpha.61 → 0.0.1-alpha.63
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/README.md +2 -2
- package/docs/sdks/novusubscribers/README.md +5 -5
- package/funcs/{topicsSubscribersDelete.d.ts → topicsSubscribersRemove.d.ts} +2 -2
- package/funcs/{topicsSubscribersDelete.d.ts.map → topicsSubscribersRemove.d.ts.map} +1 -1
- package/funcs/{topicsSubscribersDelete.js → topicsSubscribersRemove.js} +4 -4
- package/funcs/{topicsSubscribersDelete.js.map → topicsSubscribersRemove.js.map} +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/stepfilter.d.ts +8 -8
- package/models/components/stepfilter.d.ts.map +1 -1
- package/models/components/stepfilter.js +13 -13
- package/models/components/stepfilter.js.map +1 -1
- package/models/components/topicpayloaddto.d.ts +2 -27
- package/models/components/topicpayloaddto.d.ts.map +1 -1
- package/models/components/topicpayloaddto.js +4 -22
- package/models/components/topicpayloaddto.js.map +1 -1
- package/models/components/triggerrecipientstypeenum.d.ts +28 -0
- package/models/components/triggerrecipientstypeenum.d.ts.map +1 -0
- package/models/components/triggerrecipientstypeenum.js +50 -0
- package/models/components/triggerrecipientstypeenum.js.map +1 -0
- package/package.json +1 -1
- package/sdk/novusubscribers.d.ts +1 -1
- package/sdk/novusubscribers.js +3 -3
- package/src/funcs/{topicsSubscribersDelete.ts → topicsSubscribersRemove.ts} +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +1 -0
- package/src/models/components/stepfilter.ts +15 -16
- package/src/models/components/topicpayloaddto.ts +8 -30
- package/src/models/components/triggerrecipientstypeenum.ts +35 -0
- package/src/sdk/novusubscribers.ts +3 -3
package/README.md
CHANGED
|
@@ -321,7 +321,7 @@ run();
|
|
|
321
321
|
|
|
322
322
|
* [assign](docs/sdks/novusubscribers/README.md#assign) - Subscribers addition
|
|
323
323
|
* [retrieve](docs/sdks/novusubscribers/README.md#retrieve) - Check topic subscriber
|
|
324
|
-
* [
|
|
324
|
+
* [remove](docs/sdks/novusubscribers/README.md#remove) - Subscribers removal
|
|
325
325
|
|
|
326
326
|
### [workflowGroups](docs/sdks/workflowgroups/README.md)
|
|
327
327
|
|
|
@@ -395,7 +395,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
395
395
|
- [`topicsRename`](docs/sdks/topics/README.md#rename) - Rename a topic
|
|
396
396
|
- [`topicsRetrieve`](docs/sdks/topics/README.md#retrieve) - Get topic
|
|
397
397
|
- [`topicsSubscribersAssign`](docs/sdks/novusubscribers/README.md#assign) - Subscribers addition
|
|
398
|
-
- [`
|
|
398
|
+
- [`topicsSubscribersRemove`](docs/sdks/novusubscribers/README.md#remove) - Subscribers removal
|
|
399
399
|
- [`topicsSubscribersRetrieve`](docs/sdks/novusubscribers/README.md#retrieve) - Check topic subscriber
|
|
400
400
|
- [`trigger`](docs/sdks/novu/README.md#trigger) - Trigger event
|
|
401
401
|
- [`triggerBroadcast`](docs/sdks/novu/README.md#triggerbroadcast) - Broadcast event to all
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
* [assign](#assign) - Subscribers addition
|
|
9
9
|
* [retrieve](#retrieve) - Check topic subscriber
|
|
10
|
-
* [
|
|
10
|
+
* [remove](#remove) - Subscribers removal
|
|
11
11
|
|
|
12
12
|
## assign
|
|
13
13
|
|
|
@@ -167,7 +167,7 @@ run();
|
|
|
167
167
|
| --------------- | --------------- | --------------- |
|
|
168
168
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
169
169
|
|
|
170
|
-
##
|
|
170
|
+
## remove
|
|
171
171
|
|
|
172
172
|
Remove subscribers from a topic
|
|
173
173
|
|
|
@@ -181,7 +181,7 @@ const novu = new Novu({
|
|
|
181
181
|
});
|
|
182
182
|
|
|
183
183
|
async function run() {
|
|
184
|
-
const result = await novu.topics.subscribers.
|
|
184
|
+
const result = await novu.topics.subscribers.remove({
|
|
185
185
|
subscribers: [
|
|
186
186
|
"<value>",
|
|
187
187
|
"<value>",
|
|
@@ -201,7 +201,7 @@ The standalone function version of this method:
|
|
|
201
201
|
|
|
202
202
|
```typescript
|
|
203
203
|
import { NovuCore } from "@novu/api/core.js";
|
|
204
|
-
import {
|
|
204
|
+
import { topicsSubscribersRemove } from "@novu/api/funcs/topicsSubscribersRemove.js";
|
|
205
205
|
|
|
206
206
|
// Use `NovuCore` for best tree-shaking performance.
|
|
207
207
|
// You can create one instance of it to use across an application.
|
|
@@ -210,7 +210,7 @@ const novu = new NovuCore({
|
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
async function run() {
|
|
213
|
-
const res = await
|
|
213
|
+
const res = await topicsSubscribersRemove(novu, {
|
|
214
214
|
subscribers: [
|
|
215
215
|
"<value>",
|
|
216
216
|
"<value>",
|
|
@@ -12,5 +12,5 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* @remarks
|
|
13
13
|
* Remove subscribers from a topic
|
|
14
14
|
*/
|
|
15
|
-
export declare function
|
|
16
|
-
//# sourceMappingURL=
|
|
15
|
+
export declare function topicsSubscribersRemove(client: NovuCore, removeSubscribersRequestDto: components.RemoveSubscribersRequestDto, topicKey: string, options?: RequestOptions): Promise<Result<operations.TopicsControllerRemoveSubscribersResponse | undefined, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
16
|
+
//# sourceMappingURL=topicsSubscribersRemove.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"topicsSubscribersRemove.d.ts","sourceRoot":"","sources":["../src/funcs/topicsSubscribersRemove.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAItC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,QAAQ,EAChB,2BAA2B,EAAE,UAAU,CAAC,2BAA2B,EACnE,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,yCAAyC,GAAG,SAAS,EAC9D,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAqHA"}
|
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.topicsSubscribersRemove = void 0;
|
|
30
30
|
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
31
|
const M = __importStar(require("../lib/matchers.js"));
|
|
32
32
|
const schemas_js_1 = require("../lib/schemas.js");
|
|
@@ -39,7 +39,7 @@ const operations = __importStar(require("../models/operations/index.js"));
|
|
|
39
39
|
* @remarks
|
|
40
40
|
* Remove subscribers from a topic
|
|
41
41
|
*/
|
|
42
|
-
async function
|
|
42
|
+
async function topicsSubscribersRemove(client, removeSubscribersRequestDto, topicKey, options) {
|
|
43
43
|
const input = {
|
|
44
44
|
removeSubscribersRequestDto: removeSubscribersRequestDto,
|
|
45
45
|
topicKey: topicKey,
|
|
@@ -118,5 +118,5 @@ async function topicsSubscribersDelete(client, removeSubscribersRequestDto, topi
|
|
|
118
118
|
}
|
|
119
119
|
return result;
|
|
120
120
|
}
|
|
121
|
-
exports.
|
|
122
|
-
//# sourceMappingURL=
|
|
121
|
+
exports.topicsSubscribersRemove = topicsSubscribersRemove;
|
|
122
|
+
//# sourceMappingURL=topicsSubscribersRemove.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"topicsSubscribersRemove.js","sourceRoot":"","sources":["../src/funcs/topicsSubscribersRemove.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,sDAA+D;AAC/D,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAW3C,0EAA4D;AAG5D;;;;;GAKG;AACI,KAAK,UAAU,uBAAuB,CAC3C,MAAgB,EAChB,2BAAmE,EACnE,QAAgB,EAChB,OAAwB;IAaxB,MAAM,KAAK,GAAwD;QACjE,2BAA2B,EAAE,2BAA2B;QACxD,QAAQ,EAAE,QAAQ;KACnB,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,uDAAuD,CAAC,KAAK,CACtE,KAAK,CACN,EACH,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,CAAC,2BAA2B,EAAE;QACnE,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;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EAAE,GAAG,CAAC,CAAC,EACvB,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AArID,0DAqIC"}
|
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "1.0";
|
|
30
|
-
readonly sdkVersion: "0.0.1-alpha.
|
|
31
|
-
readonly genVersion: "2.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
30
|
+
readonly sdkVersion: "0.0.1-alpha.63";
|
|
31
|
+
readonly genVersion: "2.472.1";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.63 2.472.1 1.0 @novu/api";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -30,8 +30,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
|
|
|
30
30
|
exports.SDK_METADATA = {
|
|
31
31
|
language: "typescript",
|
|
32
32
|
openapiDocVersion: "1.0",
|
|
33
|
-
sdkVersion: "0.0.1-alpha.
|
|
34
|
-
genVersion: "2.
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
33
|
+
sdkVersion: "0.0.1-alpha.63",
|
|
34
|
+
genVersion: "2.472.1",
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.63 2.472.1 1.0 @novu/api",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -74,6 +74,7 @@ export * from "./topicsubscriberdto.js";
|
|
|
74
74
|
export * from "./triggereventrequestdto.js";
|
|
75
75
|
export * from "./triggereventresponsedto.js";
|
|
76
76
|
export * from "./triggereventtoallrequestdto.js";
|
|
77
|
+
export * from "./triggerrecipientstypeenum.js";
|
|
77
78
|
export * from "./unseencountresponse.js";
|
|
78
79
|
export * from "./updateintegrationrequestdto.js";
|
|
79
80
|
export * from "./updatesubscriberchannelrequestdto.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,aAAa,CAAC;AAC5B,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,c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D,cAAc,kDAAkD,CAAC;AACjE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC"}
|
|
@@ -93,6 +93,7 @@ __exportStar(require("./topicsubscriberdto.js"), exports);
|
|
|
93
93
|
__exportStar(require("./triggereventrequestdto.js"), exports);
|
|
94
94
|
__exportStar(require("./triggereventresponsedto.js"), exports);
|
|
95
95
|
__exportStar(require("./triggereventtoallrequestdto.js"), exports);
|
|
96
|
+
__exportStar(require("./triggerrecipientstypeenum.js"), exports);
|
|
96
97
|
__exportStar(require("./unseencountresponse.js"), exports);
|
|
97
98
|
__exportStar(require("./updateintegrationrequestdto.js"), exports);
|
|
98
99
|
__exportStar(require("./updatesubscriberchannelrequestdto.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6DAA2C;AAC3C,mEAAiD;AACjD,uEAAqD;AACrD,iFAA+D;AAC/D,+EAA6D;AAC7D,gEAA8C;AAC9C,gEAA8C;AAC9C,8CAA4B;AAC5B,kEAAgD;AAChD,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,6DAA2C;AAC3C,yDAAuC;AACvC,uDAAqC;AACrC,mEAAiD;AACjD,yEAAuD;AACvD,kEAAgD;AAChD,6DAA2C;AAC3C,8DAA4C;AAC5C,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,gEAA8C;AAC9C,0EAAwD;AACxD,mEAAiD;AACjD,6DAA2C;AAC3C,2DAAyC;AACzC,kDAAgC;AAChC,wDAAsC;AACtC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,uDAAqC;AACrC,uDAAqC;AACrC,+DAA6C;AAC7C,2EAAyD;AACzD,2DAAyC;AACzC,8DAA4C;AAC5C,kEAAgD;AAChD,kEAAgD;AAChD,qDAAmC;AACnC,2DAAyC;AACzC,qDAAmC;AACnC,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,0DAAwC;AACxC,uDAAqC;AACrC,yDAAuC;AACvC,oEAAkD;AAClD,wDAAsC;AACtC,+DAA6C;AAC7C,2DAAyC;AACzC,mEAAiD;AACjD,kDAAgC;AAChC,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,8DAA4C;AAC5C,gDAA8B;AAC9B,kDAAgC;AAChC,4DAA0C;AAC1C,4DAA0C;AAC1C,6DAA2C;AAC3C,wDAAsC;AACtC,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,8DAA4C;AAC5C,+DAA6C;AAC7C,mEAAiD;AACjD,2DAAyC;AACzC,mEAAiD;AACjD,yEAAuD;AACvD,mFAAiE;AACjE,4EAA0D;AAC1D,4EAA0D;AAC1D,6EAA2D;AAC3D,kEAAgD;AAChD,wDAAsC;AACtC,sEAAoD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6DAA2C;AAC3C,mEAAiD;AACjD,uEAAqD;AACrD,iFAA+D;AAC/D,+EAA6D;AAC7D,gEAA8C;AAC9C,gEAA8C;AAC9C,8CAA4B;AAC5B,kEAAgD;AAChD,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,6DAA2C;AAC3C,yDAAuC;AACvC,uDAAqC;AACrC,mEAAiD;AACjD,yEAAuD;AACvD,kEAAgD;AAChD,6DAA2C;AAC3C,8DAA4C;AAC5C,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,gEAA8C;AAC9C,0EAAwD;AACxD,mEAAiD;AACjD,6DAA2C;AAC3C,2DAAyC;AACzC,kDAAgC;AAChC,wDAAsC;AACtC,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,uDAAqC;AACrC,uDAAqC;AACrC,+DAA6C;AAC7C,2EAAyD;AACzD,2DAAyC;AACzC,8DAA4C;AAC5C,kEAAgD;AAChD,kEAAgD;AAChD,qDAAmC;AACnC,2DAAyC;AACzC,qDAAmC;AACnC,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,0DAAwC;AACxC,uDAAqC;AACrC,yDAAuC;AACvC,oEAAkD;AAClD,wDAAsC;AACtC,+DAA6C;AAC7C,2DAAyC;AACzC,mEAAiD;AACjD,kDAAgC;AAChC,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,8DAA4C;AAC5C,gDAA8B;AAC9B,kDAAgC;AAChC,4DAA0C;AAC1C,4DAA0C;AAC1C,6DAA2C;AAC3C,wDAAsC;AACtC,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,8DAA4C;AAC5C,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,yEAAuD;AACvD,mFAAiE;AACjE,4EAA0D;AAC1D,4EAA0D;AAC1D,6EAA2D;AAC3D,kEAAgD;AAChD,wDAAsC;AACtC,sEAAoD"}
|
|
@@ -3,7 +3,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
import { FieldFilterPart, FieldFilterPart$Outbound } from "./fieldfilterpart.js";
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const Type: {
|
|
7
7
|
readonly Boolean: "BOOLEAN";
|
|
8
8
|
readonly Text: "TEXT";
|
|
9
9
|
readonly Date: "DATE";
|
|
@@ -13,7 +13,7 @@ export declare const StepFilterType: {
|
|
|
13
13
|
readonly MultiList: "MULTI_LIST";
|
|
14
14
|
readonly Group: "GROUP";
|
|
15
15
|
};
|
|
16
|
-
export type
|
|
16
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
17
17
|
export declare const Value: {
|
|
18
18
|
readonly And: "AND";
|
|
19
19
|
readonly Or: "OR";
|
|
@@ -21,20 +21,20 @@ export declare const Value: {
|
|
|
21
21
|
export type Value = ClosedEnum<typeof Value>;
|
|
22
22
|
export type StepFilter = {
|
|
23
23
|
isNegated: boolean;
|
|
24
|
-
type:
|
|
24
|
+
type: Type;
|
|
25
25
|
value: Value;
|
|
26
26
|
children: Array<FieldFilterPart>;
|
|
27
27
|
};
|
|
28
28
|
/** @internal */
|
|
29
|
-
export declare const
|
|
29
|
+
export declare const Type$inboundSchema: z.ZodNativeEnum<typeof Type>;
|
|
30
30
|
/** @internal */
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const Type$outboundSchema: z.ZodNativeEnum<typeof Type>;
|
|
32
32
|
/**
|
|
33
33
|
* @internal
|
|
34
34
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
35
|
*/
|
|
36
|
-
export declare namespace
|
|
37
|
-
/** @deprecated use `
|
|
36
|
+
export declare namespace Type$ {
|
|
37
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
38
38
|
const inboundSchema: z.ZodNativeEnum<{
|
|
39
39
|
readonly Boolean: "BOOLEAN";
|
|
40
40
|
readonly Text: "TEXT";
|
|
@@ -45,7 +45,7 @@ export declare namespace StepFilterType$ {
|
|
|
45
45
|
readonly MultiList: "MULTI_LIST";
|
|
46
46
|
readonly Group: "GROUP";
|
|
47
47
|
}>;
|
|
48
|
-
/** @deprecated use `
|
|
48
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
49
49
|
const outboundSchema: z.ZodNativeEnum<{
|
|
50
50
|
readonly Boolean: "BOOLEAN";
|
|
51
51
|
readonly Text: "TEXT";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepfilter.d.ts","sourceRoot":"","sources":["../../src/models/components/stepfilter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"stepfilter.d.ts","sourceRoot":"","sources":["../../src/models/components/stepfilter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,IAAI;;;;;;;;;CASP,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AAE3C,eAAO,MAAM,KAAK;;;CAGR,CAAC;AACX,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;AAE7C,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAA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AA4B,CAAC;IACxD,qDAAqD;IACrD,KAAY,QAAQ,GAAG,mBAAmB,CAAC;CAC5C;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAE/D;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
|
|
@@ -26,11 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.stepFilterFromJSON = exports.stepFilterToJSON = exports.StepFilter$ = exports.StepFilter$outboundSchema = exports.StepFilter$inboundSchema = exports.Value$ = exports.Value$outboundSchema = exports.Value$inboundSchema = exports.
|
|
29
|
+
exports.stepFilterFromJSON = exports.stepFilterToJSON = exports.StepFilter$ = exports.StepFilter$outboundSchema = exports.StepFilter$inboundSchema = exports.Value$ = exports.Value$outboundSchema = exports.Value$inboundSchema = exports.Type$ = exports.Type$outboundSchema = exports.Type$inboundSchema = exports.Value = exports.Type = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
32
|
const fieldfilterpart_js_1 = require("./fieldfilterpart.js");
|
|
33
|
-
exports.
|
|
33
|
+
exports.Type = {
|
|
34
34
|
Boolean: "BOOLEAN",
|
|
35
35
|
Text: "TEXT",
|
|
36
36
|
Date: "DATE",
|
|
@@ -45,20 +45,20 @@ exports.Value = {
|
|
|
45
45
|
Or: "OR",
|
|
46
46
|
};
|
|
47
47
|
/** @internal */
|
|
48
|
-
exports.
|
|
48
|
+
exports.Type$inboundSchema = z.nativeEnum(exports.Type);
|
|
49
49
|
/** @internal */
|
|
50
|
-
exports.
|
|
50
|
+
exports.Type$outboundSchema = exports.Type$inboundSchema;
|
|
51
51
|
/**
|
|
52
52
|
* @internal
|
|
53
53
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
54
|
*/
|
|
55
|
-
var
|
|
56
|
-
(function (
|
|
57
|
-
/** @deprecated use `
|
|
58
|
-
|
|
59
|
-
/** @deprecated use `
|
|
60
|
-
|
|
61
|
-
})(
|
|
55
|
+
var Type$;
|
|
56
|
+
(function (Type$) {
|
|
57
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
58
|
+
Type$.inboundSchema = exports.Type$inboundSchema;
|
|
59
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
60
|
+
Type$.outboundSchema = exports.Type$outboundSchema;
|
|
61
|
+
})(Type$ || (exports.Type$ = Type$ = {}));
|
|
62
62
|
/** @internal */
|
|
63
63
|
exports.Value$inboundSchema = z.nativeEnum(exports.Value);
|
|
64
64
|
/** @internal */
|
|
@@ -77,14 +77,14 @@ var Value$;
|
|
|
77
77
|
/** @internal */
|
|
78
78
|
exports.StepFilter$inboundSchema = z.object({
|
|
79
79
|
isNegated: z.boolean(),
|
|
80
|
-
type: exports.
|
|
80
|
+
type: exports.Type$inboundSchema,
|
|
81
81
|
value: exports.Value$inboundSchema,
|
|
82
82
|
children: z.array(fieldfilterpart_js_1.FieldFilterPart$inboundSchema),
|
|
83
83
|
});
|
|
84
84
|
/** @internal */
|
|
85
85
|
exports.StepFilter$outboundSchema = z.object({
|
|
86
86
|
isNegated: z.boolean(),
|
|
87
|
-
type: exports.
|
|
87
|
+
type: exports.Type$outboundSchema,
|
|
88
88
|
value: exports.Value$outboundSchema,
|
|
89
89
|
children: z.array(fieldfilterpart_js_1.FieldFilterPart$outboundSchema),
|
|
90
90
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepfilter.js","sourceRoot":"","sources":["../../src/models/components/stepfilter.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAIjD,6DAK8B;AAEjB,QAAA,
|
|
1
|
+
{"version":3,"file":"stepfilter.js","sourceRoot":"","sources":["../../src/models/components/stepfilter.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAIjD,6DAK8B;AAEjB,QAAA,IAAI,GAAG;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,OAAO;CACN,CAAC;AAGE,QAAA,KAAK,GAAG;IACnB,GAAG,EAAE,KAAK;IACV,EAAE,EAAE,IAAI;CACA,CAAC;AAUX,gBAAgB;AACH,QAAA,kBAAkB,GAAiC,CAAC,CAAC,UAAU,CAC1E,YAAI,CACL,CAAC;AAEF,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,0BAAkB,CAAC;AAErB;;;GAGG;AACH,IAAiB,KAAK,CAKrB;AALD,WAAiB,KAAK;IACpB,oDAAoD;IACvC,mBAAa,GAAG,0BAAkB,CAAC;IAChD,qDAAqD;IACxC,oBAAc,GAAG,2BAAmB,CAAC;AACpD,CAAC,EALgB,KAAK,qBAAL,KAAK,QAKrB;AAED,gBAAgB;AACH,QAAA,mBAAmB,GAAkC,CAAC,CAAC,UAAU,CAC5E,aAAK,CACN,CAAC;AAEF,gBAAgB;AACH,QAAA,oBAAoB,GAC/B,2BAAmB,CAAC;AAEtB;;;GAGG;AACH,IAAiB,MAAM,CAKtB;AALD,WAAiB,MAAM;IACrB,qDAAqD;IACxC,oBAAa,GAAG,2BAAmB,CAAC;IACjD,sDAAsD;IACzC,qBAAc,GAAG,4BAAoB,CAAC;AACrD,CAAC,EALgB,MAAM,sBAAN,MAAM,QAKtB;AAED,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,IAAI,EAAE,0BAAkB;IACxB,KAAK,EAAE,2BAAmB;IAC1B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,kDAA6B,CAAC;CACjD,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,IAAI,EAAE,2BAAmB;IACzB,KAAK,EAAE,4BAAoB;IAC3B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,mDAA8B,CAAC;CAClD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,WAAW,CAO3B;AAPD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,gCAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,iCAAyB,CAAC;AAG1D,CAAC,EAPgB,WAAW,2BAAX,WAAW,QAO3B;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,IAAI,CAAC,SAAS,CAAC,iCAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACrE,CAAC;AAFD,4CAEC;AAED,SAAgB,kBAAkB,CAChC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC;AARD,gDAQC"}
|
|
@@ -1,37 +1,12 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
|
|
6
|
-
readonly Subscriber: "Subscriber";
|
|
7
|
-
readonly Topic: "Topic";
|
|
8
|
-
};
|
|
9
|
-
export type Type = ClosedEnum<typeof Type>;
|
|
4
|
+
import { TriggerRecipientsTypeEnum } from "./triggerrecipientstypeenum.js";
|
|
10
5
|
export type TopicPayloadDto = {
|
|
11
6
|
topicKey: string;
|
|
12
|
-
type:
|
|
7
|
+
type: TriggerRecipientsTypeEnum;
|
|
13
8
|
};
|
|
14
9
|
/** @internal */
|
|
15
|
-
export declare const Type$inboundSchema: z.ZodNativeEnum<typeof Type>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const Type$outboundSchema: z.ZodNativeEnum<typeof Type>;
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
-
*/
|
|
22
|
-
export declare namespace Type$ {
|
|
23
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
24
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
25
|
-
readonly Subscriber: "Subscriber";
|
|
26
|
-
readonly Topic: "Topic";
|
|
27
|
-
}>;
|
|
28
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
30
|
-
readonly Subscriber: "Subscriber";
|
|
31
|
-
readonly Topic: "Topic";
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
34
|
-
/** @internal */
|
|
35
10
|
export declare const TopicPayloadDto$inboundSchema: z.ZodType<TopicPayloadDto, z.ZodTypeDef, unknown>;
|
|
36
11
|
/** @internal */
|
|
37
12
|
export type TopicPayloadDto$Outbound = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topicpayloaddto.d.ts","sourceRoot":"","sources":["../../src/models/components/topicpayloaddto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"topicpayloaddto.d.ts","sourceRoot":"","sources":["../../src/models/components/topicpayloaddto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,yBAAyB,EAG1B,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,yBAAyB,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAIf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -26,37 +26,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.topicPayloadDtoFromJSON = exports.topicPayloadDtoToJSON = exports.TopicPayloadDto$ = exports.TopicPayloadDto$outboundSchema = exports.TopicPayloadDto$inboundSchema =
|
|
29
|
+
exports.topicPayloadDtoFromJSON = exports.topicPayloadDtoToJSON = exports.TopicPayloadDto$ = exports.TopicPayloadDto$outboundSchema = exports.TopicPayloadDto$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
-
|
|
33
|
-
Subscriber: "Subscriber",
|
|
34
|
-
Topic: "Topic",
|
|
35
|
-
};
|
|
36
|
-
/** @internal */
|
|
37
|
-
exports.Type$inboundSchema = z.nativeEnum(exports.Type);
|
|
38
|
-
/** @internal */
|
|
39
|
-
exports.Type$outboundSchema = exports.Type$inboundSchema;
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
var Type$;
|
|
45
|
-
(function (Type$) {
|
|
46
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
47
|
-
Type$.inboundSchema = exports.Type$inboundSchema;
|
|
48
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
49
|
-
Type$.outboundSchema = exports.Type$outboundSchema;
|
|
50
|
-
})(Type$ || (exports.Type$ = Type$ = {}));
|
|
32
|
+
const triggerrecipientstypeenum_js_1 = require("./triggerrecipientstypeenum.js");
|
|
51
33
|
/** @internal */
|
|
52
34
|
exports.TopicPayloadDto$inboundSchema = z.object({
|
|
53
35
|
topicKey: z.string(),
|
|
54
|
-
type:
|
|
36
|
+
type: triggerrecipientstypeenum_js_1.TriggerRecipientsTypeEnum$inboundSchema,
|
|
55
37
|
});
|
|
56
38
|
/** @internal */
|
|
57
39
|
exports.TopicPayloadDto$outboundSchema = z.object({
|
|
58
40
|
topicKey: z.string(),
|
|
59
|
-
type:
|
|
41
|
+
type: triggerrecipientstypeenum_js_1.TriggerRecipientsTypeEnum$outboundSchema,
|
|
60
42
|
});
|
|
61
43
|
/**
|
|
62
44
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topicpayloaddto.js","sourceRoot":"","sources":["../../src/models/components/topicpayloaddto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;
|
|
1
|
+
{"version":3,"file":"topicpayloaddto.js","sourceRoot":"","sources":["../../src/models/components/topicpayloaddto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,iFAIwC;AAOxC,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,sEAAuC;CAC9C,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,uEAAwC;CAC/C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC;AAED,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAJD,sDAIC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC;AARD,0DAQC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const TriggerRecipientsTypeEnum: {
|
|
4
|
+
readonly Subscriber: "Subscriber";
|
|
5
|
+
readonly Topic: "Topic";
|
|
6
|
+
};
|
|
7
|
+
export type TriggerRecipientsTypeEnum = ClosedEnum<typeof TriggerRecipientsTypeEnum>;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const TriggerRecipientsTypeEnum$inboundSchema: z.ZodNativeEnum<typeof TriggerRecipientsTypeEnum>;
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const TriggerRecipientsTypeEnum$outboundSchema: z.ZodNativeEnum<typeof TriggerRecipientsTypeEnum>;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
15
|
+
*/
|
|
16
|
+
export declare namespace TriggerRecipientsTypeEnum$ {
|
|
17
|
+
/** @deprecated use `TriggerRecipientsTypeEnum$inboundSchema` instead. */
|
|
18
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
19
|
+
readonly Subscriber: "Subscriber";
|
|
20
|
+
readonly Topic: "Topic";
|
|
21
|
+
}>;
|
|
22
|
+
/** @deprecated use `TriggerRecipientsTypeEnum$outboundSchema` instead. */
|
|
23
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
24
|
+
readonly Subscriber: "Subscriber";
|
|
25
|
+
readonly Topic: "Topic";
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=triggerrecipientstypeenum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"triggerrecipientstypeenum.d.ts","sourceRoot":"","sources":["../../src/models/components/triggerrecipientstypeenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAChD,OAAO,yBAAyB,CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,aAAa,CACnE,OAAO,yBAAyB,CACS,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,aAAa,CACpE,OAAO,yBAAyB,CACS,CAAC;AAE5C;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa;;;MAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc;;;MAA2C,CAAC;CACxE"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TriggerRecipientsTypeEnum$ = exports.TriggerRecipientsTypeEnum$outboundSchema = exports.TriggerRecipientsTypeEnum$inboundSchema = exports.TriggerRecipientsTypeEnum = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
exports.TriggerRecipientsTypeEnum = {
|
|
32
|
+
Subscriber: "Subscriber",
|
|
33
|
+
Topic: "Topic",
|
|
34
|
+
};
|
|
35
|
+
/** @internal */
|
|
36
|
+
exports.TriggerRecipientsTypeEnum$inboundSchema = z.nativeEnum(exports.TriggerRecipientsTypeEnum);
|
|
37
|
+
/** @internal */
|
|
38
|
+
exports.TriggerRecipientsTypeEnum$outboundSchema = exports.TriggerRecipientsTypeEnum$inboundSchema;
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
+
*/
|
|
43
|
+
var TriggerRecipientsTypeEnum$;
|
|
44
|
+
(function (TriggerRecipientsTypeEnum$) {
|
|
45
|
+
/** @deprecated use `TriggerRecipientsTypeEnum$inboundSchema` instead. */
|
|
46
|
+
TriggerRecipientsTypeEnum$.inboundSchema = exports.TriggerRecipientsTypeEnum$inboundSchema;
|
|
47
|
+
/** @deprecated use `TriggerRecipientsTypeEnum$outboundSchema` instead. */
|
|
48
|
+
TriggerRecipientsTypeEnum$.outboundSchema = exports.TriggerRecipientsTypeEnum$outboundSchema;
|
|
49
|
+
})(TriggerRecipientsTypeEnum$ || (exports.TriggerRecipientsTypeEnum$ = TriggerRecipientsTypeEnum$ = {}));
|
|
50
|
+
//# sourceMappingURL=triggerrecipientstypeenum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"triggerrecipientstypeenum.js","sourceRoot":"","sources":["../../src/models/components/triggerrecipientstypeenum.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,yBAAyB,GAAG;IACvC,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;CACN,CAAC;AAKX,gBAAgB;AACH,QAAA,uCAAuC,GAEhD,CAAC,CAAC,UAAU,CAAC,iCAAyB,CAAC,CAAC;AAE5C,gBAAgB;AACH,QAAA,wCAAwC,GAEjD,+CAAuC,CAAC;AAE5C;;;GAGG;AACH,IAAiB,0BAA0B,CAK1C;AALD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AACzE,CAAC,EALgB,0BAA0B,0CAA1B,0BAA0B,QAK1C"}
|
package/package.json
CHANGED
package/sdk/novusubscribers.d.ts
CHANGED
|
@@ -22,6 +22,6 @@ export declare class NovuSubscribers extends ClientSDK {
|
|
|
22
22
|
* @remarks
|
|
23
23
|
* Remove subscribers from a topic
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
remove(removeSubscribersRequestDto: components.RemoveSubscribersRequestDto, topicKey: string, options?: RequestOptions): Promise<operations.TopicsControllerRemoveSubscribersResponse | undefined>;
|
|
26
26
|
}
|
|
27
27
|
//# sourceMappingURL=novusubscribers.d.ts.map
|
package/sdk/novusubscribers.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.NovuSubscribers = void 0;
|
|
7
7
|
const topicsSubscribersAssign_js_1 = require("../funcs/topicsSubscribersAssign.js");
|
|
8
|
-
const
|
|
8
|
+
const topicsSubscribersRemove_js_1 = require("../funcs/topicsSubscribersRemove.js");
|
|
9
9
|
const topicsSubscribersRetrieve_js_1 = require("../funcs/topicsSubscribersRetrieve.js");
|
|
10
10
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
11
11
|
const fp_js_1 = require("../types/fp.js");
|
|
@@ -34,8 +34,8 @@ class NovuSubscribers extends sdks_js_1.ClientSDK {
|
|
|
34
34
|
* @remarks
|
|
35
35
|
* Remove subscribers from a topic
|
|
36
36
|
*/
|
|
37
|
-
async
|
|
38
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
37
|
+
async remove(removeSubscribersRequestDto, topicKey, options) {
|
|
38
|
+
return (0, fp_js_1.unwrapAsync)((0, topicsSubscribersRemove_js_1.topicsSubscribersRemove)(this, removeSubscribersRequestDto, topicKey, options));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
exports.NovuSubscribers = NovuSubscribers;
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* @remarks
|
|
29
29
|
* Remove subscribers from a topic
|
|
30
30
|
*/
|
|
31
|
-
export async function
|
|
31
|
+
export async function topicsSubscribersRemove(
|
|
32
32
|
client: NovuCore,
|
|
33
33
|
removeSubscribersRequestDto: components.RemoveSubscribersRequestDto,
|
|
34
34
|
topicKey: string,
|
package/src/lib/config.ts
CHANGED
|
@@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0",
|
|
58
|
-
sdkVersion: "0.0.1-alpha.
|
|
59
|
-
genVersion: "2.
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
58
|
+
sdkVersion: "0.0.1-alpha.63",
|
|
59
|
+
genVersion: "2.472.1",
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.63 2.472.1 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -78,6 +78,7 @@ export * from "./topicsubscriberdto.js";
|
|
|
78
78
|
export * from "./triggereventrequestdto.js";
|
|
79
79
|
export * from "./triggereventresponsedto.js";
|
|
80
80
|
export * from "./triggereventtoallrequestdto.js";
|
|
81
|
+
export * from "./triggerrecipientstypeenum.js";
|
|
81
82
|
export * from "./unseencountresponse.js";
|
|
82
83
|
export * from "./updateintegrationrequestdto.js";
|
|
83
84
|
export * from "./updatesubscriberchannelrequestdto.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
FieldFilterPart$outboundSchema,
|
|
15
15
|
} from "./fieldfilterpart.js";
|
|
16
16
|
|
|
17
|
-
export const
|
|
17
|
+
export const Type = {
|
|
18
18
|
Boolean: "BOOLEAN",
|
|
19
19
|
Text: "TEXT",
|
|
20
20
|
Date: "DATE",
|
|
@@ -24,7 +24,7 @@ export const StepFilterType = {
|
|
|
24
24
|
MultiList: "MULTI_LIST",
|
|
25
25
|
Group: "GROUP",
|
|
26
26
|
} as const;
|
|
27
|
-
export type
|
|
27
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
28
28
|
|
|
29
29
|
export const Value = {
|
|
30
30
|
And: "AND",
|
|
@@ -34,30 +34,29 @@ export type Value = ClosedEnum<typeof Value>;
|
|
|
34
34
|
|
|
35
35
|
export type StepFilter = {
|
|
36
36
|
isNegated: boolean;
|
|
37
|
-
type:
|
|
37
|
+
type: Type;
|
|
38
38
|
value: Value;
|
|
39
39
|
children: Array<FieldFilterPart>;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
43
|
-
export const
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
44
|
+
Type,
|
|
45
|
+
);
|
|
46
46
|
|
|
47
47
|
/** @internal */
|
|
48
|
-
export const
|
|
49
|
-
|
|
50
|
-
> = StepFilterType$inboundSchema;
|
|
48
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
49
|
+
Type$inboundSchema;
|
|
51
50
|
|
|
52
51
|
/**
|
|
53
52
|
* @internal
|
|
54
53
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
54
|
*/
|
|
56
|
-
export namespace
|
|
57
|
-
/** @deprecated use `
|
|
58
|
-
export const inboundSchema =
|
|
59
|
-
/** @deprecated use `
|
|
60
|
-
export const outboundSchema =
|
|
55
|
+
export namespace Type$ {
|
|
56
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
57
|
+
export const inboundSchema = Type$inboundSchema;
|
|
58
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema = Type$outboundSchema;
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
/** @internal */
|
|
@@ -87,7 +86,7 @@ export const StepFilter$inboundSchema: z.ZodType<
|
|
|
87
86
|
unknown
|
|
88
87
|
> = z.object({
|
|
89
88
|
isNegated: z.boolean(),
|
|
90
|
-
type:
|
|
89
|
+
type: Type$inboundSchema,
|
|
91
90
|
value: Value$inboundSchema,
|
|
92
91
|
children: z.array(FieldFilterPart$inboundSchema),
|
|
93
92
|
});
|
|
@@ -107,7 +106,7 @@ export const StepFilter$outboundSchema: z.ZodType<
|
|
|
107
106
|
StepFilter
|
|
108
107
|
> = z.object({
|
|
109
108
|
isNegated: z.boolean(),
|
|
110
|
-
type:
|
|
109
|
+
type: Type$outboundSchema,
|
|
111
110
|
value: Value$outboundSchema,
|
|
112
111
|
children: z.array(FieldFilterPart$outboundSchema),
|
|
113
112
|
});
|
|
@@ -4,41 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
export type Type = ClosedEnum<typeof Type>;
|
|
9
|
+
import {
|
|
10
|
+
TriggerRecipientsTypeEnum,
|
|
11
|
+
TriggerRecipientsTypeEnum$inboundSchema,
|
|
12
|
+
TriggerRecipientsTypeEnum$outboundSchema,
|
|
13
|
+
} from "./triggerrecipientstypeenum.js";
|
|
16
14
|
|
|
17
15
|
export type TopicPayloadDto = {
|
|
18
16
|
topicKey: string;
|
|
19
|
-
type:
|
|
17
|
+
type: TriggerRecipientsTypeEnum;
|
|
20
18
|
};
|
|
21
19
|
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
24
|
-
Type,
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
29
|
-
Type$inboundSchema;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @internal
|
|
33
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
-
*/
|
|
35
|
-
export namespace Type$ {
|
|
36
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
37
|
-
export const inboundSchema = Type$inboundSchema;
|
|
38
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
39
|
-
export const outboundSchema = Type$outboundSchema;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
20
|
/** @internal */
|
|
43
21
|
export const TopicPayloadDto$inboundSchema: z.ZodType<
|
|
44
22
|
TopicPayloadDto,
|
|
@@ -46,7 +24,7 @@ export const TopicPayloadDto$inboundSchema: z.ZodType<
|
|
|
46
24
|
unknown
|
|
47
25
|
> = z.object({
|
|
48
26
|
topicKey: z.string(),
|
|
49
|
-
type:
|
|
27
|
+
type: TriggerRecipientsTypeEnum$inboundSchema,
|
|
50
28
|
});
|
|
51
29
|
|
|
52
30
|
/** @internal */
|
|
@@ -62,7 +40,7 @@ export const TopicPayloadDto$outboundSchema: z.ZodType<
|
|
|
62
40
|
TopicPayloadDto
|
|
63
41
|
> = z.object({
|
|
64
42
|
topicKey: z.string(),
|
|
65
|
-
type:
|
|
43
|
+
type: TriggerRecipientsTypeEnum$outboundSchema,
|
|
66
44
|
});
|
|
67
45
|
|
|
68
46
|
/**
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const TriggerRecipientsTypeEnum = {
|
|
9
|
+
Subscriber: "Subscriber",
|
|
10
|
+
Topic: "Topic",
|
|
11
|
+
} as const;
|
|
12
|
+
export type TriggerRecipientsTypeEnum = ClosedEnum<
|
|
13
|
+
typeof TriggerRecipientsTypeEnum
|
|
14
|
+
>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const TriggerRecipientsTypeEnum$inboundSchema: z.ZodNativeEnum<
|
|
18
|
+
typeof TriggerRecipientsTypeEnum
|
|
19
|
+
> = z.nativeEnum(TriggerRecipientsTypeEnum);
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const TriggerRecipientsTypeEnum$outboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof TriggerRecipientsTypeEnum
|
|
24
|
+
> = TriggerRecipientsTypeEnum$inboundSchema;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export namespace TriggerRecipientsTypeEnum$ {
|
|
31
|
+
/** @deprecated use `TriggerRecipientsTypeEnum$inboundSchema` instead. */
|
|
32
|
+
export const inboundSchema = TriggerRecipientsTypeEnum$inboundSchema;
|
|
33
|
+
/** @deprecated use `TriggerRecipientsTypeEnum$outboundSchema` instead. */
|
|
34
|
+
export const outboundSchema = TriggerRecipientsTypeEnum$outboundSchema;
|
|
35
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { topicsSubscribersAssign } from "../funcs/topicsSubscribersAssign.js";
|
|
6
|
-
import {
|
|
6
|
+
import { topicsSubscribersRemove } from "../funcs/topicsSubscribersRemove.js";
|
|
7
7
|
import { topicsSubscribersRetrieve } from "../funcs/topicsSubscribersRetrieve.js";
|
|
8
8
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
9
|
import * as components from "../models/components/index.js";
|
|
@@ -55,12 +55,12 @@ export class NovuSubscribers extends ClientSDK {
|
|
|
55
55
|
* @remarks
|
|
56
56
|
* Remove subscribers from a topic
|
|
57
57
|
*/
|
|
58
|
-
async
|
|
58
|
+
async remove(
|
|
59
59
|
removeSubscribersRequestDto: components.RemoveSubscribersRequestDto,
|
|
60
60
|
topicKey: string,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<operations.TopicsControllerRemoveSubscribersResponse | undefined> {
|
|
63
|
-
return unwrapAsync(
|
|
63
|
+
return unwrapAsync(topicsSubscribersRemove(
|
|
64
64
|
this,
|
|
65
65
|
removeSubscribersRequestDto,
|
|
66
66
|
topicKey,
|