@novu/api 0.0.1-alpha.77 → 0.0.1-alpha.79
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/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/actorfeeditemdto.d.ts +38 -0
- package/models/components/actorfeeditemdto.d.ts.map +1 -0
- package/models/components/actorfeeditemdto.js +62 -0
- package/models/components/actorfeeditemdto.js.map +1 -0
- package/models/components/channelsettings.d.ts +1 -1
- package/models/components/channeltypeenum.d.ts +6 -0
- package/models/components/channeltypeenum.d.ts.map +1 -1
- package/models/components/channeltypeenum.js +3 -0
- package/models/components/channeltypeenum.js.map +1 -1
- package/models/components/feedresponsedto.d.ts +3 -3
- package/models/components/feedresponsedto.d.ts.map +1 -1
- package/models/components/feedresponsedto.js +3 -3
- package/models/components/feedresponsedto.js.map +1 -1
- package/models/components/index.d.ts +3 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -2
- package/models/components/index.js.map +1 -1
- package/models/components/{notificationdto.d.ts → notificationfeeditemdto.d.ts} +30 -69
- package/models/components/notificationfeeditemdto.d.ts.map +1 -0
- package/models/components/{notificationdto.js → notificationfeeditemdto.js} +38 -62
- package/models/components/notificationfeeditemdto.js.map +1 -0
- package/models/components/subscriberfeedresponsedto.d.ts +52 -0
- package/models/components/subscriberfeedresponsedto.d.ts.map +1 -0
- package/models/components/subscriberfeedresponsedto.js +76 -0
- package/models/components/subscriberfeedresponsedto.js.map +1 -0
- package/models/components/subscriberresponsedto.d.ts +46 -4
- package/models/components/subscriberresponsedto.d.ts.map +1 -1
- package/models/components/subscriberresponsedto.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +13 -13
- package/models/components/triggereventrequestdto.d.ts.map +1 -1
- package/models/components/triggereventrequestdto.js +17 -16
- package/models/components/triggereventrequestdto.js.map +1 -1
- package/models/operations/messagescontrollergetmessages.d.ts +3 -0
- package/models/operations/messagescontrollergetmessages.d.ts.map +1 -1
- package/models/operations/messagescontrollergetmessages.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/actorfeeditemdto.ts +81 -0
- package/src/models/components/channelsettings.ts +1 -1
- package/src/models/components/channeltypeenum.ts +6 -0
- package/src/models/components/feedresponsedto.ts +9 -9
- package/src/models/components/index.ts +3 -2
- package/src/models/components/{notificationdto.ts → notificationfeeditemdto.ts} +67 -94
- package/src/models/components/subscriberfeedresponsedto.ts +106 -0
- package/src/models/components/subscriberresponsedto.ts +46 -4
- package/src/models/components/triggereventrequestdto.ts +20 -31
- package/src/models/operations/messagescontrollergetmessages.ts +3 -0
- package/models/components/actor.d.ts +0 -62
- package/models/components/actor.d.ts.map +0 -1
- package/models/components/actor.js +0 -86
- package/models/components/actor.js.map +0 -1
- package/models/components/notificationdto.d.ts.map +0 -1
- package/models/components/notificationdto.js.map +0 -1
- package/src/models/components/actor.ts +0 -123
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.474.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
30
|
+
readonly sdkVersion: "0.0.1-alpha.79";
|
|
31
|
+
readonly genVersion: "2.474.15";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.79 2.474.15 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.474.
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
33
|
+
sdkVersion: "0.0.1-alpha.79",
|
|
34
|
+
genVersion: "2.474.15",
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.79 2.474.15 1.0 @novu/api",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAKH,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,qBAAqB;IACrB,wBAAwB;CAChB,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAfD,oDAeC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,gBAAgB;IAC5B,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAKH,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,qBAAqB;IACrB,wBAAwB;CAChB,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAfD,oDAeC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,gBAAgB;IAC5B,UAAU,EAAE,UAAU;IACtB,SAAS,EAAE,gEAAgE;CACnE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { ActorTypeEnum } from "./actortypeenum.js";
|
|
5
|
+
export type ActorFeedItemDto = {
|
|
6
|
+
/**
|
|
7
|
+
* The data associated with the actor, can be null if not applicable.
|
|
8
|
+
*/
|
|
9
|
+
data: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The type of the actor, indicating the role in the notification process.
|
|
12
|
+
*/
|
|
13
|
+
type: ActorTypeEnum;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const ActorFeedItemDto$inboundSchema: z.ZodType<ActorFeedItemDto, z.ZodTypeDef, unknown>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type ActorFeedItemDto$Outbound = {
|
|
19
|
+
data: string | null;
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const ActorFeedItemDto$outboundSchema: z.ZodType<ActorFeedItemDto$Outbound, z.ZodTypeDef, ActorFeedItemDto>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace ActorFeedItemDto$ {
|
|
29
|
+
/** @deprecated use `ActorFeedItemDto$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<ActorFeedItemDto, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `ActorFeedItemDto$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<ActorFeedItemDto$Outbound, z.ZodTypeDef, ActorFeedItemDto>;
|
|
33
|
+
/** @deprecated use `ActorFeedItemDto$Outbound` instead. */
|
|
34
|
+
type Outbound = ActorFeedItemDto$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function actorFeedItemDtoToJSON(actorFeedItemDto: ActorFeedItemDto): string;
|
|
37
|
+
export declare function actorFeedItemDtoFromJSON(jsonString: string): SafeParseResult<ActorFeedItemDto, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=actorfeeditemdto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actorfeeditemdto.d.ts","sourceRoot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+
* 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.actorFeedItemDtoFromJSON = exports.actorFeedItemDtoToJSON = exports.ActorFeedItemDto$ = exports.ActorFeedItemDto$outboundSchema = exports.ActorFeedItemDto$inboundSchema = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
+
const actortypeenum_js_1 = require("./actortypeenum.js");
|
|
33
|
+
/** @internal */
|
|
34
|
+
exports.ActorFeedItemDto$inboundSchema = z.object({
|
|
35
|
+
data: z.nullable(z.string()),
|
|
36
|
+
type: actortypeenum_js_1.ActorTypeEnum$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
exports.ActorFeedItemDto$outboundSchema = z.object({
|
|
40
|
+
data: z.nullable(z.string()),
|
|
41
|
+
type: actortypeenum_js_1.ActorTypeEnum$outboundSchema,
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
var ActorFeedItemDto$;
|
|
48
|
+
(function (ActorFeedItemDto$) {
|
|
49
|
+
/** @deprecated use `ActorFeedItemDto$inboundSchema` instead. */
|
|
50
|
+
ActorFeedItemDto$.inboundSchema = exports.ActorFeedItemDto$inboundSchema;
|
|
51
|
+
/** @deprecated use `ActorFeedItemDto$outboundSchema` instead. */
|
|
52
|
+
ActorFeedItemDto$.outboundSchema = exports.ActorFeedItemDto$outboundSchema;
|
|
53
|
+
})(ActorFeedItemDto$ || (exports.ActorFeedItemDto$ = ActorFeedItemDto$ = {}));
|
|
54
|
+
function actorFeedItemDtoToJSON(actorFeedItemDto) {
|
|
55
|
+
return JSON.stringify(exports.ActorFeedItemDto$outboundSchema.parse(actorFeedItemDto));
|
|
56
|
+
}
|
|
57
|
+
exports.actorFeedItemDtoToJSON = actorFeedItemDtoToJSON;
|
|
58
|
+
function actorFeedItemDtoFromJSON(jsonString) {
|
|
59
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ActorFeedItemDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ActorFeedItemDto' from JSON`);
|
|
60
|
+
}
|
|
61
|
+
exports.actorFeedItemDtoFromJSON = actorFeedItemDtoFromJSON;
|
|
62
|
+
//# sourceMappingURL=actorfeeditemdto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actorfeeditemdto.js","sourceRoot":"","sources":["../../src/models/components/actorfeeditemdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,yDAI4B;AAa5B,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,IAAI,EAAE,8CAA2B;CAClC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,IAAI,EAAE,+CAA4B;CACnC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,iCAAjB,iBAAiB,QAOjC;AAED,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AAND,wDAMC;AAED,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC;AARD,4DAQC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* The channel through which the notification is sent.
|
|
5
|
+
*/
|
|
3
6
|
export declare const ChannelTypeEnum: {
|
|
4
7
|
readonly InApp: "in_app";
|
|
5
8
|
readonly Email: "email";
|
|
@@ -7,6 +10,9 @@ export declare const ChannelTypeEnum: {
|
|
|
7
10
|
readonly Chat: "chat";
|
|
8
11
|
readonly Push: "push";
|
|
9
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* The channel through which the notification is sent.
|
|
15
|
+
*/
|
|
10
16
|
export type ChannelTypeEnum = ClosedEnum<typeof ChannelTypeEnum>;
|
|
11
17
|
/** @internal */
|
|
12
18
|
export declare const ChannelTypeEnum$inboundSchema: z.ZodNativeEnum<typeof ChannelTypeEnum>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channeltypeenum.d.ts","sourceRoot":"","sources":["../../src/models/components/channeltypeenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAEjE,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,aAAa,CACzD,OAAO,eAAe,CACS,CAAC;AAElC,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,eAAe,CACS,CAAC;AAElC;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa;;;;;;MAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc;;;;;;MAAiC,CAAC;CAC9D"}
|
|
1
|
+
{"version":3,"file":"channeltypeenum.d.ts","sourceRoot":"","sources":["../../src/models/components/channeltypeenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAEjE,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,aAAa,CACzD,OAAO,eAAe,CACS,CAAC;AAElC,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,eAAe,CACS,CAAC;AAElC;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa;;;;;;MAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc;;;;;;MAAiC,CAAC;CAC9D"}
|
|
@@ -28,6 +28,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ChannelTypeEnum$ = exports.ChannelTypeEnum$outboundSchema = exports.ChannelTypeEnum$inboundSchema = exports.ChannelTypeEnum = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
|
+
/**
|
|
32
|
+
* The channel through which the notification is sent.
|
|
33
|
+
*/
|
|
31
34
|
exports.ChannelTypeEnum = {
|
|
32
35
|
InApp: "in_app",
|
|
33
36
|
Email: "email",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channeltypeenum.js","sourceRoot":"","sources":["../../src/models/components/channeltypeenum.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;
|
|
1
|
+
{"version":3,"file":"channeltypeenum.js","sourceRoot":"","sources":["../../src/models/components/channeltypeenum.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;AAMX,gBAAgB;AACH,QAAA,6BAA6B,GAEtC,CAAC,CAAC,UAAU,CAAC,uBAAe,CAAC,CAAC;AAElC,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,qCAA6B,CAAC;AAElC;;;GAGG;AACH,IAAiB,gBAAgB,CAKhC;AALD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAC/D,CAAC,EALgB,gBAAgB,gCAAhB,gBAAgB,QAKhC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import {
|
|
4
|
+
import { NotificationFeedItemDto, NotificationFeedItemDto$Outbound } from "./notificationfeeditemdto.js";
|
|
5
5
|
export type FeedResponseDto = {
|
|
6
6
|
/**
|
|
7
7
|
* Total number of notifications available.
|
|
@@ -14,7 +14,7 @@ export type FeedResponseDto = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Array of notifications returned in the response.
|
|
16
16
|
*/
|
|
17
|
-
data: Array<
|
|
17
|
+
data: Array<NotificationFeedItemDto>;
|
|
18
18
|
/**
|
|
19
19
|
* The number of notifications returned in this response.
|
|
20
20
|
*/
|
|
@@ -30,7 +30,7 @@ export declare const FeedResponseDto$inboundSchema: z.ZodType<FeedResponseDto, z
|
|
|
30
30
|
export type FeedResponseDto$Outbound = {
|
|
31
31
|
totalCount?: number | undefined;
|
|
32
32
|
hasMore: boolean;
|
|
33
|
-
data: Array<
|
|
33
|
+
data: Array<NotificationFeedItemDto$Outbound>;
|
|
34
34
|
pageSize: number;
|
|
35
35
|
page: number;
|
|
36
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/feedresponsedto.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,
|
|
1
|
+
{"version":3,"file":"feedresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/feedresponsedto.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,uBAAuB,EAEvB,gCAAgC,EAEjC,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IACrC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC;IAC9C,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,CAOf,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"}
|
|
@@ -29,12 +29,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.feedResponseDtoFromJSON = exports.feedResponseDtoToJSON = exports.FeedResponseDto$ = exports.FeedResponseDto$outboundSchema = exports.FeedResponseDto$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
-
const
|
|
32
|
+
const notificationfeeditemdto_js_1 = require("./notificationfeeditemdto.js");
|
|
33
33
|
/** @internal */
|
|
34
34
|
exports.FeedResponseDto$inboundSchema = z.object({
|
|
35
35
|
totalCount: z.number().optional(),
|
|
36
36
|
hasMore: z.boolean(),
|
|
37
|
-
data: z.array(
|
|
37
|
+
data: z.array(notificationfeeditemdto_js_1.NotificationFeedItemDto$inboundSchema),
|
|
38
38
|
pageSize: z.number(),
|
|
39
39
|
page: z.number(),
|
|
40
40
|
});
|
|
@@ -42,7 +42,7 @@ exports.FeedResponseDto$inboundSchema = z.object({
|
|
|
42
42
|
exports.FeedResponseDto$outboundSchema = z.object({
|
|
43
43
|
totalCount: z.number().optional(),
|
|
44
44
|
hasMore: z.boolean(),
|
|
45
|
-
data: z.array(
|
|
45
|
+
data: z.array(notificationfeeditemdto_js_1.NotificationFeedItemDto$outboundSchema),
|
|
46
46
|
pageSize: z.number(),
|
|
47
47
|
page: z.number(),
|
|
48
48
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedresponsedto.js","sourceRoot":"","sources":["../../src/models/components/feedresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,
|
|
1
|
+
{"version":3,"file":"feedresponsedto.js","sourceRoot":"","sources":["../../src/models/components/feedresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,6EAKsC;AAyBtC,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,kEAAqC,CAAC;IACpD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,mEAAsC,CAAC;IACrD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,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"}
|
|
@@ -4,7 +4,7 @@ export * from "./activitynotificationresponsedto.js";
|
|
|
4
4
|
export * from "./activitynotificationsubscriberresponsedto.js";
|
|
5
5
|
export * from "./activitynotificationtemplateresponsedto.js";
|
|
6
6
|
export * from "./activitystatsresponsedto.js";
|
|
7
|
-
export * from "./
|
|
7
|
+
export * from "./actorfeeditemdto.js";
|
|
8
8
|
export * from "./actortypeenum.js";
|
|
9
9
|
export * from "./addsubscribersrequestdto.js";
|
|
10
10
|
export * from "./apikey.js";
|
|
@@ -52,7 +52,7 @@ export * from "./messageentity.js";
|
|
|
52
52
|
export * from "./messagemarkasrequestdto.js";
|
|
53
53
|
export * from "./messageresponsedto.js";
|
|
54
54
|
export * from "./messagetemplate.js";
|
|
55
|
-
export * from "./
|
|
55
|
+
export * from "./notificationfeeditemdto.js";
|
|
56
56
|
export * from "./notificationgroup.js";
|
|
57
57
|
export * from "./notificationgroupresponsedto.js";
|
|
58
58
|
export * from "./notificationstep.js";
|
|
@@ -67,6 +67,7 @@ export * from "./renametopicresponsedto.js";
|
|
|
67
67
|
export * from "./security.js";
|
|
68
68
|
export * from "./stepfilter.js";
|
|
69
69
|
export * from "./subscriberchanneldto.js";
|
|
70
|
+
export * from "./subscriberfeedresponsedto.js";
|
|
70
71
|
export * from "./subscriberpayloaddto.js";
|
|
71
72
|
export * from "./subscriberresponsedto.js";
|
|
72
73
|
export * from "./templateresponse.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,
|
|
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,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,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,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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2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,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"}
|
|
@@ -23,7 +23,7 @@ __exportStar(require("./activitynotificationresponsedto.js"), exports);
|
|
|
23
23
|
__exportStar(require("./activitynotificationsubscriberresponsedto.js"), exports);
|
|
24
24
|
__exportStar(require("./activitynotificationtemplateresponsedto.js"), exports);
|
|
25
25
|
__exportStar(require("./activitystatsresponsedto.js"), exports);
|
|
26
|
-
__exportStar(require("./
|
|
26
|
+
__exportStar(require("./actorfeeditemdto.js"), exports);
|
|
27
27
|
__exportStar(require("./actortypeenum.js"), exports);
|
|
28
28
|
__exportStar(require("./addsubscribersrequestdto.js"), exports);
|
|
29
29
|
__exportStar(require("./apikey.js"), exports);
|
|
@@ -71,7 +71,7 @@ __exportStar(require("./messageentity.js"), exports);
|
|
|
71
71
|
__exportStar(require("./messagemarkasrequestdto.js"), exports);
|
|
72
72
|
__exportStar(require("./messageresponsedto.js"), exports);
|
|
73
73
|
__exportStar(require("./messagetemplate.js"), exports);
|
|
74
|
-
__exportStar(require("./
|
|
74
|
+
__exportStar(require("./notificationfeeditemdto.js"), exports);
|
|
75
75
|
__exportStar(require("./notificationgroup.js"), exports);
|
|
76
76
|
__exportStar(require("./notificationgroupresponsedto.js"), exports);
|
|
77
77
|
__exportStar(require("./notificationstep.js"), exports);
|
|
@@ -86,6 +86,7 @@ __exportStar(require("./renametopicresponsedto.js"), exports);
|
|
|
86
86
|
__exportStar(require("./security.js"), exports);
|
|
87
87
|
__exportStar(require("./stepfilter.js"), exports);
|
|
88
88
|
__exportStar(require("./subscriberchanneldto.js"), exports);
|
|
89
|
+
__exportStar(require("./subscriberfeedresponsedto.js"), exports);
|
|
89
90
|
__exportStar(require("./subscriberpayloaddto.js"), exports);
|
|
90
91
|
__exportStar(require("./subscriberresponsedto.js"), exports);
|
|
91
92
|
__exportStar(require("./templateresponse.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,
|
|
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,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,8CAA4B;AAC5B,kEAAgD;AAChD,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,6DAA2C;AAC3C,yDAAuC;AACvC,uDAAqC;AACrC,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,+DAA6C;AAC7C,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,iEAA+C;AAC/C,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"}
|
|
@@ -2,27 +2,14 @@ import * as z from "zod";
|
|
|
2
2
|
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
|
-
import {
|
|
5
|
+
import { ActorFeedItemDto, ActorFeedItemDto$Outbound } from "./actorfeeditemdto.js";
|
|
6
|
+
import { ChannelTypeEnum } from "./channeltypeenum.js";
|
|
6
7
|
import { MessageCTA, MessageCTA$Outbound } from "./messagecta.js";
|
|
7
|
-
import {
|
|
8
|
-
/**
|
|
9
|
-
* The channel through which the notification is sent.
|
|
10
|
-
*/
|
|
11
|
-
export declare const NotificationDtoChannel: {
|
|
12
|
-
readonly InApp: "in_app";
|
|
13
|
-
readonly Email: "email";
|
|
14
|
-
readonly Sms: "sms";
|
|
15
|
-
readonly Chat: "chat";
|
|
16
|
-
readonly Push: "push";
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* The channel through which the notification is sent.
|
|
20
|
-
*/
|
|
21
|
-
export type NotificationDtoChannel = ClosedEnum<typeof NotificationDtoChannel>;
|
|
8
|
+
import { SubscriberFeedResponseDto, SubscriberFeedResponseDto$Outbound } from "./subscriberfeedresponsedto.js";
|
|
22
9
|
/**
|
|
23
10
|
* Current status of the notification.
|
|
24
11
|
*/
|
|
25
|
-
export declare const
|
|
12
|
+
export declare const NotificationFeedItemDtoStatus: {
|
|
26
13
|
readonly Sent: "sent";
|
|
27
14
|
readonly Error: "error";
|
|
28
15
|
readonly Warning: "warning";
|
|
@@ -30,8 +17,8 @@ export declare const NotificationDtoStatus: {
|
|
|
30
17
|
/**
|
|
31
18
|
* Current status of the notification.
|
|
32
19
|
*/
|
|
33
|
-
export type
|
|
34
|
-
export type
|
|
20
|
+
export type NotificationFeedItemDtoStatus = ClosedEnum<typeof NotificationFeedItemDtoStatus>;
|
|
21
|
+
export type NotificationFeedItemDto = {
|
|
35
22
|
/**
|
|
36
23
|
* Unique identifier for the notification.
|
|
37
24
|
*/
|
|
@@ -79,11 +66,11 @@ export type NotificationDto = {
|
|
|
79
66
|
/**
|
|
80
67
|
* Actor details related to the notification, if applicable.
|
|
81
68
|
*/
|
|
82
|
-
actor?:
|
|
69
|
+
actor?: ActorFeedItemDto | undefined;
|
|
83
70
|
/**
|
|
84
71
|
* Subscriber details associated with this notification.
|
|
85
72
|
*/
|
|
86
|
-
subscriber?:
|
|
73
|
+
subscriber?: SubscriberFeedResponseDto | undefined;
|
|
87
74
|
/**
|
|
88
75
|
* Unique identifier for the transaction associated with the notification.
|
|
89
76
|
*/
|
|
@@ -107,7 +94,7 @@ export type NotificationDto = {
|
|
|
107
94
|
/**
|
|
108
95
|
* The channel through which the notification is sent.
|
|
109
96
|
*/
|
|
110
|
-
channel:
|
|
97
|
+
channel: ChannelTypeEnum;
|
|
111
98
|
/**
|
|
112
99
|
* Indicates whether the notification has been read by the subscriber.
|
|
113
100
|
*/
|
|
@@ -131,7 +118,7 @@ export type NotificationDto = {
|
|
|
131
118
|
/**
|
|
132
119
|
* Current status of the notification.
|
|
133
120
|
*/
|
|
134
|
-
status:
|
|
121
|
+
status: NotificationFeedItemDtoStatus;
|
|
135
122
|
/**
|
|
136
123
|
* The payload that was used to send the notification trigger.
|
|
137
124
|
*/
|
|
@@ -146,47 +133,21 @@ export type NotificationDto = {
|
|
|
146
133
|
} | undefined;
|
|
147
134
|
};
|
|
148
135
|
/** @internal */
|
|
149
|
-
export declare const
|
|
150
|
-
/** @internal */
|
|
151
|
-
export declare const NotificationDtoChannel$outboundSchema: z.ZodNativeEnum<typeof NotificationDtoChannel>;
|
|
152
|
-
/**
|
|
153
|
-
* @internal
|
|
154
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
155
|
-
*/
|
|
156
|
-
export declare namespace NotificationDtoChannel$ {
|
|
157
|
-
/** @deprecated use `NotificationDtoChannel$inboundSchema` instead. */
|
|
158
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
159
|
-
readonly InApp: "in_app";
|
|
160
|
-
readonly Email: "email";
|
|
161
|
-
readonly Sms: "sms";
|
|
162
|
-
readonly Chat: "chat";
|
|
163
|
-
readonly Push: "push";
|
|
164
|
-
}>;
|
|
165
|
-
/** @deprecated use `NotificationDtoChannel$outboundSchema` instead. */
|
|
166
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
167
|
-
readonly InApp: "in_app";
|
|
168
|
-
readonly Email: "email";
|
|
169
|
-
readonly Sms: "sms";
|
|
170
|
-
readonly Chat: "chat";
|
|
171
|
-
readonly Push: "push";
|
|
172
|
-
}>;
|
|
173
|
-
}
|
|
174
|
-
/** @internal */
|
|
175
|
-
export declare const NotificationDtoStatus$inboundSchema: z.ZodNativeEnum<typeof NotificationDtoStatus>;
|
|
136
|
+
export declare const NotificationFeedItemDtoStatus$inboundSchema: z.ZodNativeEnum<typeof NotificationFeedItemDtoStatus>;
|
|
176
137
|
/** @internal */
|
|
177
|
-
export declare const
|
|
138
|
+
export declare const NotificationFeedItemDtoStatus$outboundSchema: z.ZodNativeEnum<typeof NotificationFeedItemDtoStatus>;
|
|
178
139
|
/**
|
|
179
140
|
* @internal
|
|
180
141
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
181
142
|
*/
|
|
182
|
-
export declare namespace
|
|
183
|
-
/** @deprecated use `
|
|
143
|
+
export declare namespace NotificationFeedItemDtoStatus$ {
|
|
144
|
+
/** @deprecated use `NotificationFeedItemDtoStatus$inboundSchema` instead. */
|
|
184
145
|
const inboundSchema: z.ZodNativeEnum<{
|
|
185
146
|
readonly Sent: "sent";
|
|
186
147
|
readonly Error: "error";
|
|
187
148
|
readonly Warning: "warning";
|
|
188
149
|
}>;
|
|
189
|
-
/** @deprecated use `
|
|
150
|
+
/** @deprecated use `NotificationFeedItemDtoStatus$outboundSchema` instead. */
|
|
190
151
|
const outboundSchema: z.ZodNativeEnum<{
|
|
191
152
|
readonly Sent: "sent";
|
|
192
153
|
readonly Error: "error";
|
|
@@ -194,9 +155,9 @@ export declare namespace NotificationDtoStatus$ {
|
|
|
194
155
|
}>;
|
|
195
156
|
}
|
|
196
157
|
/** @internal */
|
|
197
|
-
export declare const
|
|
158
|
+
export declare const NotificationFeedItemDto$inboundSchema: z.ZodType<NotificationFeedItemDto, z.ZodTypeDef, unknown>;
|
|
198
159
|
/** @internal */
|
|
199
|
-
export type
|
|
160
|
+
export type NotificationFeedItemDto$Outbound = {
|
|
200
161
|
_id: string;
|
|
201
162
|
_templateId: string;
|
|
202
163
|
_environmentId: string;
|
|
@@ -208,8 +169,8 @@ export type NotificationDto$Outbound = {
|
|
|
208
169
|
_jobId: string;
|
|
209
170
|
createdAt?: string | null | undefined;
|
|
210
171
|
updatedAt?: string | null | undefined;
|
|
211
|
-
actor?:
|
|
212
|
-
subscriber?:
|
|
172
|
+
actor?: ActorFeedItemDto$Outbound | undefined;
|
|
173
|
+
subscriber?: SubscriberFeedResponseDto$Outbound | undefined;
|
|
213
174
|
transactionId: string;
|
|
214
175
|
templateIdentifier?: string | null | undefined;
|
|
215
176
|
providerId?: string | null | undefined;
|
|
@@ -230,19 +191,19 @@ export type NotificationDto$Outbound = {
|
|
|
230
191
|
} | undefined;
|
|
231
192
|
};
|
|
232
193
|
/** @internal */
|
|
233
|
-
export declare const
|
|
194
|
+
export declare const NotificationFeedItemDto$outboundSchema: z.ZodType<NotificationFeedItemDto$Outbound, z.ZodTypeDef, NotificationFeedItemDto>;
|
|
234
195
|
/**
|
|
235
196
|
* @internal
|
|
236
197
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
237
198
|
*/
|
|
238
|
-
export declare namespace
|
|
239
|
-
/** @deprecated use `
|
|
240
|
-
const inboundSchema: z.ZodType<
|
|
241
|
-
/** @deprecated use `
|
|
242
|
-
const outboundSchema: z.ZodType<
|
|
243
|
-
/** @deprecated use `
|
|
244
|
-
type Outbound =
|
|
199
|
+
export declare namespace NotificationFeedItemDto$ {
|
|
200
|
+
/** @deprecated use `NotificationFeedItemDto$inboundSchema` instead. */
|
|
201
|
+
const inboundSchema: z.ZodType<NotificationFeedItemDto, z.ZodTypeDef, unknown>;
|
|
202
|
+
/** @deprecated use `NotificationFeedItemDto$outboundSchema` instead. */
|
|
203
|
+
const outboundSchema: z.ZodType<NotificationFeedItemDto$Outbound, z.ZodTypeDef, NotificationFeedItemDto>;
|
|
204
|
+
/** @deprecated use `NotificationFeedItemDto$Outbound` instead. */
|
|
205
|
+
type Outbound = NotificationFeedItemDto$Outbound;
|
|
245
206
|
}
|
|
246
|
-
export declare function
|
|
247
|
-
export declare function
|
|
248
|
-
//# sourceMappingURL=
|
|
207
|
+
export declare function notificationFeedItemDtoToJSON(notificationFeedItemDto: NotificationFeedItemDto): string;
|
|
208
|
+
export declare function notificationFeedItemDtoFromJSON(jsonString: string): SafeParseResult<NotificationFeedItemDto, SDKValidationError>;
|
|
209
|
+
//# sourceMappingURL=notificationfeeditemdto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationfeeditemdto.d.ts","sourceRoot":"","sources":["../../src/models/components/notificationfeeditemdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,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,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EAGhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;CAIhC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,iBA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