@novu/api 0.0.1-alpha.110 → 0.0.1-alpha.115
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/docs/sdks/novunotifications/README.md +2 -2
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +1 -0
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +1 -0
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +1 -0
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts.map +1 -1
- package/funcs/integrationsList.js +1 -0
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.d.ts.map +1 -1
- package/funcs/integrationsListActive.js +1 -0
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +1 -0
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +1 -0
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +1 -0
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +1 -0
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +1 -0
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +1 -0
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +1 -0
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +1 -0
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.d.ts.map +1 -1
- package/funcs/notificationsStatsGraph.js +1 -0
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +1 -0
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +1 -0
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +1 -0
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +1 -0
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +1 -0
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +1 -0
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +1 -0
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +1 -0
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts.map +1 -1
- package/funcs/subscribersDelete.js +1 -0
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +1 -0
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +1 -0
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +1 -0
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +1 -0
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +1 -0
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +1 -0
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +1 -0
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.js +1 -0
- package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +1 -0
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.js +1 -0
- package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +1 -0
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +1 -0
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersUpdate.d.ts.map +1 -1
- package/funcs/subscribersUpdate.js +1 -0
- package/funcs/subscribersUpdate.js.map +1 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +1 -0
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +1 -0
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +1 -0
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.d.ts.map +1 -1
- package/funcs/topicsRename.js +1 -0
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.d.ts.map +1 -1
- package/funcs/topicsRetrieve.js +1 -0
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
- package/funcs/topicsSubscribersAssign.js +1 -0
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
- package/funcs/topicsSubscribersRemove.js +1 -0
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +1 -0
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.d.ts.map +1 -1
- package/funcs/trigger.js +1 -0
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.d.ts.map +1 -1
- package/funcs/triggerBroadcast.js +1 -0
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.d.ts.map +1 -1
- package/funcs/triggerBulk.js +1 -0
- package/funcs/triggerBulk.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts +5 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +1 -0
- package/lib/sdks.js.map +1 -1
- package/models/components/activitiesresponsedto.d.ts +10 -1
- package/models/components/activitiesresponsedto.d.ts.map +1 -1
- package/models/components/activitiesresponsedto.js.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +153 -0
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -0
- package/models/components/activitynotificationexecutiondetailresponsedto.js +137 -0
- package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -0
- package/models/components/activitynotificationjobresponsedto.d.ts +117 -0
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -0
- package/models/components/activitynotificationjobresponsedto.js +131 -0
- package/models/components/activitynotificationjobresponsedto.js.map +1 -0
- package/models/components/activitynotificationresponsedto.d.ts +36 -2
- package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationresponsedto.js +6 -2
- package/models/components/activitynotificationresponsedto.js.map +1 -1
- package/models/components/activitynotificationstepresponsedto.d.ts +49 -0
- package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -0
- package/models/components/activitynotificationstepresponsedto.js +76 -0
- package/models/components/activitynotificationstepresponsedto.js.map +1 -0
- package/models/components/activitynotificationsubscriberresponsedto.d.ts +15 -0
- package/models/components/activitynotificationsubscriberresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationsubscriberresponsedto.js.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.d.ts +12 -2
- package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.js +3 -2
- package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
- package/models/components/channelpreference.d.ts +8 -8
- package/models/components/channelpreference.d.ts.map +1 -1
- package/models/components/channelpreference.js +13 -13
- package/models/components/channelpreference.js.map +1 -1
- package/models/components/index.d.ts +4 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -2
- package/models/components/index.js.map +1 -1
- package/models/components/messageactionresult.d.ts +15 -15
- package/models/components/messageactionresult.d.ts.map +1 -1
- package/models/components/messageactionresult.js +18 -18
- package/models/components/messageactionresult.js.map +1 -1
- package/models/components/messagetemplatedto.d.ts +25 -0
- package/models/components/messagetemplatedto.d.ts.map +1 -0
- package/models/components/{builderfieldtype.js → messagetemplatedto.js} +20 -21
- package/models/components/messagetemplatedto.js.map +1 -0
- package/models/components/notificationtrigger.d.ts +26 -8
- package/models/components/notificationtrigger.d.ts.map +1 -1
- package/models/components/notificationtrigger.js +16 -13
- package/models/components/notificationtrigger.js.map +1 -1
- package/models/components/notificationtriggervariable.d.ts +3 -0
- package/models/components/notificationtriggervariable.d.ts.map +1 -1
- package/models/components/notificationtriggervariable.js.map +1 -1
- package/models/components/stepfilter.d.ts +2 -40
- package/models/components/stepfilter.d.ts.map +1 -1
- package/models/components/stepfilter.js +3 -34
- package/models/components/stepfilter.js.map +1 -1
- package/models/operations/subscriberscontrollergetunseencount.d.ts +9 -3
- package/models/operations/subscriberscontrollergetunseencount.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetunseencount.js +4 -4
- package/models/operations/subscriberscontrollergetunseencount.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/cancel.ts +1 -0
- package/src/funcs/integrationsCreate.ts +1 -0
- package/src/funcs/integrationsDelete.ts +1 -0
- package/src/funcs/integrationsList.ts +1 -0
- package/src/funcs/integrationsListActive.ts +1 -0
- package/src/funcs/integrationsSetAsPrimary.ts +1 -0
- package/src/funcs/integrationsUpdate.ts +1 -0
- package/src/funcs/integrationsWebhooksRetrieve.ts +1 -0
- package/src/funcs/messagesDelete.ts +1 -0
- package/src/funcs/messagesDeleteByTransactionId.ts +1 -0
- package/src/funcs/messagesRetrieve.ts +1 -0
- package/src/funcs/notificationsList.ts +1 -0
- package/src/funcs/notificationsRetrieve.ts +1 -0
- package/src/funcs/notificationsStatsGraph.ts +1 -0
- package/src/funcs/notificationsStatsRetrieve.ts +1 -0
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +1 -0
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +1 -0
- package/src/funcs/subscribersCreate.ts +1 -0
- package/src/funcs/subscribersCreateBulk.ts +1 -0
- package/src/funcs/subscribersCredentialsAppend.ts +1 -0
- package/src/funcs/subscribersCredentialsDelete.ts +1 -0
- package/src/funcs/subscribersCredentialsUpdate.ts +1 -0
- package/src/funcs/subscribersDelete.ts +1 -0
- package/src/funcs/subscribersList.ts +1 -0
- package/src/funcs/subscribersMessagesMarkAll.ts +1 -0
- package/src/funcs/subscribersMessagesMarkAllAs.ts +1 -0
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +1 -0
- package/src/funcs/subscribersNotificationsFeed.ts +1 -0
- package/src/funcs/subscribersNotificationsUnseenCount.ts +1 -0
- package/src/funcs/subscribersPreferencesList.ts +1 -0
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +1 -0
- package/src/funcs/subscribersPreferencesUpdate.ts +1 -0
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +1 -0
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +1 -0
- package/src/funcs/subscribersRetrieve.ts +1 -0
- package/src/funcs/subscribersUpdate.ts +1 -0
- package/src/funcs/topicsCreate.ts +1 -0
- package/src/funcs/topicsDelete.ts +1 -0
- package/src/funcs/topicsList.ts +1 -0
- package/src/funcs/topicsRename.ts +1 -0
- package/src/funcs/topicsRetrieve.ts +1 -0
- package/src/funcs/topicsSubscribersAssign.ts +1 -0
- package/src/funcs/topicsSubscribersRemove.ts +1 -0
- package/src/funcs/topicsSubscribersRetrieve.ts +1 -0
- package/src/funcs/trigger.ts +1 -0
- package/src/funcs/triggerBroadcast.ts +1 -0
- package/src/funcs/triggerBulk.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +6 -1
- package/src/models/components/activitiesresponsedto.ts +10 -1
- package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +225 -0
- package/src/models/components/activitynotificationjobresponsedto.ts +241 -0
- package/src/models/components/activitynotificationresponsedto.ts +43 -4
- package/src/models/components/activitynotificationstepresponsedto.ts +116 -0
- package/src/models/components/activitynotificationsubscriberresponsedto.ts +15 -0
- package/src/models/components/activitynotificationtemplateresponsedto.ts +19 -4
- package/src/models/components/channelpreference.ts +16 -15
- package/src/models/components/index.ts +4 -2
- package/src/models/components/messageactionresult.ts +31 -24
- package/src/models/components/messagetemplatedto.ts +58 -0
- package/src/models/components/notificationtrigger.ts +33 -18
- package/src/models/components/notificationtriggervariable.ts +3 -0
- package/src/models/components/stepfilter.ts +4 -62
- package/src/models/operations/subscriberscontrollergetunseencount.ts +13 -7
- package/models/components/builderfieldtype.d.ts +0 -46
- package/models/components/builderfieldtype.d.ts.map +0 -1
- package/models/components/builderfieldtype.js.map +0 -1
- package/models/components/fieldfilterpart.d.ts +0 -122
- package/models/components/fieldfilterpart.d.ts.map +0 -1
- package/models/components/fieldfilterpart.js +0 -116
- package/models/components/fieldfilterpart.js.map +0 -1
- package/src/models/components/builderfieldtype.ts +0 -39
- package/src/models/components/fieldfilterpart.ts +0 -137
|
@@ -10,9 +10,15 @@ import * as components from "../components/index.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type SubscribersControllerGetUnseenCountRequest = {
|
|
13
|
-
seen: boolean;
|
|
14
13
|
subscriberId: string;
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Indicates whether to count seen notifications.
|
|
16
|
+
*/
|
|
17
|
+
seen?: boolean | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The maximum number of notifications to return.
|
|
20
|
+
*/
|
|
21
|
+
limit?: number | undefined;
|
|
16
22
|
};
|
|
17
23
|
|
|
18
24
|
export type SubscribersControllerGetUnseenCountResponse = {
|
|
@@ -24,15 +30,15 @@ export type SubscribersControllerGetUnseenCountResponse = {
|
|
|
24
30
|
export const SubscribersControllerGetUnseenCountRequest$inboundSchema:
|
|
25
31
|
z.ZodType<SubscribersControllerGetUnseenCountRequest, z.ZodTypeDef, unknown> =
|
|
26
32
|
z.object({
|
|
27
|
-
seen: z.boolean(),
|
|
28
33
|
subscriberId: z.string(),
|
|
29
|
-
|
|
34
|
+
seen: z.boolean().default(false),
|
|
35
|
+
limit: z.number().default(100),
|
|
30
36
|
});
|
|
31
37
|
|
|
32
38
|
/** @internal */
|
|
33
39
|
export type SubscribersControllerGetUnseenCountRequest$Outbound = {
|
|
34
|
-
seen: boolean;
|
|
35
40
|
subscriberId: string;
|
|
41
|
+
seen: boolean;
|
|
36
42
|
limit: number;
|
|
37
43
|
};
|
|
38
44
|
|
|
@@ -43,9 +49,9 @@ export const SubscribersControllerGetUnseenCountRequest$outboundSchema:
|
|
|
43
49
|
z.ZodTypeDef,
|
|
44
50
|
SubscribersControllerGetUnseenCountRequest
|
|
45
51
|
> = z.object({
|
|
46
|
-
seen: z.boolean(),
|
|
47
52
|
subscriberId: z.string(),
|
|
48
|
-
|
|
53
|
+
seen: z.boolean().default(false),
|
|
54
|
+
limit: z.number().default(100),
|
|
49
55
|
});
|
|
50
56
|
|
|
51
57
|
/**
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
export declare const BuilderFieldType: {
|
|
4
|
-
readonly Boolean: "BOOLEAN";
|
|
5
|
-
readonly Text: "TEXT";
|
|
6
|
-
readonly Date: "DATE";
|
|
7
|
-
readonly Number: "NUMBER";
|
|
8
|
-
readonly Statement: "STATEMENT";
|
|
9
|
-
readonly List: "LIST";
|
|
10
|
-
readonly MultiList: "MULTI_LIST";
|
|
11
|
-
readonly Group: "GROUP";
|
|
12
|
-
};
|
|
13
|
-
export type BuilderFieldType = ClosedEnum<typeof BuilderFieldType>;
|
|
14
|
-
/** @internal */
|
|
15
|
-
export declare const BuilderFieldType$inboundSchema: z.ZodNativeEnum<typeof BuilderFieldType>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const BuilderFieldType$outboundSchema: z.ZodNativeEnum<typeof BuilderFieldType>;
|
|
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 BuilderFieldType$ {
|
|
23
|
-
/** @deprecated use `BuilderFieldType$inboundSchema` instead. */
|
|
24
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
25
|
-
readonly Boolean: "BOOLEAN";
|
|
26
|
-
readonly Text: "TEXT";
|
|
27
|
-
readonly Date: "DATE";
|
|
28
|
-
readonly Number: "NUMBER";
|
|
29
|
-
readonly Statement: "STATEMENT";
|
|
30
|
-
readonly List: "LIST";
|
|
31
|
-
readonly MultiList: "MULTI_LIST";
|
|
32
|
-
readonly Group: "GROUP";
|
|
33
|
-
}>;
|
|
34
|
-
/** @deprecated use `BuilderFieldType$outboundSchema` instead. */
|
|
35
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
36
|
-
readonly Boolean: "BOOLEAN";
|
|
37
|
-
readonly Text: "TEXT";
|
|
38
|
-
readonly Date: "DATE";
|
|
39
|
-
readonly Number: "NUMBER";
|
|
40
|
-
readonly Statement: "STATEMENT";
|
|
41
|
-
readonly List: "LIST";
|
|
42
|
-
readonly MultiList: "MULTI_LIST";
|
|
43
|
-
readonly Group: "GROUP";
|
|
44
|
-
}>;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=builderfieldtype.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"builderfieldtype.d.ts","sourceRoot":"","sources":["../../src/models/components/builderfieldtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,gBAAgB;;;;;;;;;CASnB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC;AAEnC;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa;;;;;;;;;MAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc;;;;;;;;;MAAkC,CAAC;CAC/D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"builderfieldtype.js","sourceRoot":"","sources":["../../src/models/components/builderfieldtype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,gBAAgB,GAAG;IAC9B,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;AAGX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AAEnC,gBAAgB;AACH,QAAA,+BAA+B,GAExC,sCAA8B,CAAC;AAEnC;;;GAGG;AACH,IAAiB,iBAAiB,CAKjC;AALD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAChE,CAAC,EALgB,iBAAiB,iCAAjB,iBAAiB,QAKjC"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export declare const Operator: {
|
|
6
|
-
readonly Larger: "LARGER";
|
|
7
|
-
readonly Smaller: "SMALLER";
|
|
8
|
-
readonly LargerEqual: "LARGER_EQUAL";
|
|
9
|
-
readonly SmallerEqual: "SMALLER_EQUAL";
|
|
10
|
-
readonly Equal: "EQUAL";
|
|
11
|
-
readonly NotEqual: "NOT_EQUAL";
|
|
12
|
-
readonly AllIn: "ALL_IN";
|
|
13
|
-
readonly AnyIn: "ANY_IN";
|
|
14
|
-
readonly NotIn: "NOT_IN";
|
|
15
|
-
readonly Between: "BETWEEN";
|
|
16
|
-
readonly NotBetween: "NOT_BETWEEN";
|
|
17
|
-
readonly Like: "LIKE";
|
|
18
|
-
readonly NotLike: "NOT_LIKE";
|
|
19
|
-
readonly In: "IN";
|
|
20
|
-
};
|
|
21
|
-
export type Operator = ClosedEnum<typeof Operator>;
|
|
22
|
-
export declare const On: {
|
|
23
|
-
readonly Subscriber: "subscriber";
|
|
24
|
-
readonly Payload: "payload";
|
|
25
|
-
};
|
|
26
|
-
export type On = ClosedEnum<typeof On>;
|
|
27
|
-
export type FieldFilterPart = {
|
|
28
|
-
field: string;
|
|
29
|
-
value: string;
|
|
30
|
-
operator: Operator;
|
|
31
|
-
on: On;
|
|
32
|
-
};
|
|
33
|
-
/** @internal */
|
|
34
|
-
export declare const Operator$inboundSchema: z.ZodNativeEnum<typeof Operator>;
|
|
35
|
-
/** @internal */
|
|
36
|
-
export declare const Operator$outboundSchema: z.ZodNativeEnum<typeof Operator>;
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export declare namespace Operator$ {
|
|
42
|
-
/** @deprecated use `Operator$inboundSchema` instead. */
|
|
43
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
44
|
-
readonly Larger: "LARGER";
|
|
45
|
-
readonly Smaller: "SMALLER";
|
|
46
|
-
readonly LargerEqual: "LARGER_EQUAL";
|
|
47
|
-
readonly SmallerEqual: "SMALLER_EQUAL";
|
|
48
|
-
readonly Equal: "EQUAL";
|
|
49
|
-
readonly NotEqual: "NOT_EQUAL";
|
|
50
|
-
readonly AllIn: "ALL_IN";
|
|
51
|
-
readonly AnyIn: "ANY_IN";
|
|
52
|
-
readonly NotIn: "NOT_IN";
|
|
53
|
-
readonly Between: "BETWEEN";
|
|
54
|
-
readonly NotBetween: "NOT_BETWEEN";
|
|
55
|
-
readonly Like: "LIKE";
|
|
56
|
-
readonly NotLike: "NOT_LIKE";
|
|
57
|
-
readonly In: "IN";
|
|
58
|
-
}>;
|
|
59
|
-
/** @deprecated use `Operator$outboundSchema` instead. */
|
|
60
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
61
|
-
readonly Larger: "LARGER";
|
|
62
|
-
readonly Smaller: "SMALLER";
|
|
63
|
-
readonly LargerEqual: "LARGER_EQUAL";
|
|
64
|
-
readonly SmallerEqual: "SMALLER_EQUAL";
|
|
65
|
-
readonly Equal: "EQUAL";
|
|
66
|
-
readonly NotEqual: "NOT_EQUAL";
|
|
67
|
-
readonly AllIn: "ALL_IN";
|
|
68
|
-
readonly AnyIn: "ANY_IN";
|
|
69
|
-
readonly NotIn: "NOT_IN";
|
|
70
|
-
readonly Between: "BETWEEN";
|
|
71
|
-
readonly NotBetween: "NOT_BETWEEN";
|
|
72
|
-
readonly Like: "LIKE";
|
|
73
|
-
readonly NotLike: "NOT_LIKE";
|
|
74
|
-
readonly In: "IN";
|
|
75
|
-
}>;
|
|
76
|
-
}
|
|
77
|
-
/** @internal */
|
|
78
|
-
export declare const On$inboundSchema: z.ZodNativeEnum<typeof On>;
|
|
79
|
-
/** @internal */
|
|
80
|
-
export declare const On$outboundSchema: z.ZodNativeEnum<typeof On>;
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
export declare namespace On$ {
|
|
86
|
-
/** @deprecated use `On$inboundSchema` instead. */
|
|
87
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
88
|
-
readonly Subscriber: "subscriber";
|
|
89
|
-
readonly Payload: "payload";
|
|
90
|
-
}>;
|
|
91
|
-
/** @deprecated use `On$outboundSchema` instead. */
|
|
92
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
93
|
-
readonly Subscriber: "subscriber";
|
|
94
|
-
readonly Payload: "payload";
|
|
95
|
-
}>;
|
|
96
|
-
}
|
|
97
|
-
/** @internal */
|
|
98
|
-
export declare const FieldFilterPart$inboundSchema: z.ZodType<FieldFilterPart, z.ZodTypeDef, unknown>;
|
|
99
|
-
/** @internal */
|
|
100
|
-
export type FieldFilterPart$Outbound = {
|
|
101
|
-
field: string;
|
|
102
|
-
value: string;
|
|
103
|
-
operator: string;
|
|
104
|
-
on: string;
|
|
105
|
-
};
|
|
106
|
-
/** @internal */
|
|
107
|
-
export declare const FieldFilterPart$outboundSchema: z.ZodType<FieldFilterPart$Outbound, z.ZodTypeDef, FieldFilterPart>;
|
|
108
|
-
/**
|
|
109
|
-
* @internal
|
|
110
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
111
|
-
*/
|
|
112
|
-
export declare namespace FieldFilterPart$ {
|
|
113
|
-
/** @deprecated use `FieldFilterPart$inboundSchema` instead. */
|
|
114
|
-
const inboundSchema: z.ZodType<FieldFilterPart, z.ZodTypeDef, unknown>;
|
|
115
|
-
/** @deprecated use `FieldFilterPart$outboundSchema` instead. */
|
|
116
|
-
const outboundSchema: z.ZodType<FieldFilterPart$Outbound, z.ZodTypeDef, FieldFilterPart>;
|
|
117
|
-
/** @deprecated use `FieldFilterPart$Outbound` instead. */
|
|
118
|
-
type Outbound = FieldFilterPart$Outbound;
|
|
119
|
-
}
|
|
120
|
-
export declare function fieldFilterPartToJSON(fieldFilterPart: FieldFilterPart): string;
|
|
121
|
-
export declare function fieldFilterPartFromJSON(jsonString: string): SafeParseResult<FieldFilterPart, SDKValidationError>;
|
|
122
|
-
//# sourceMappingURL=fieldfilterpart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fieldfilterpart.d.ts","sourceRoot":"","sources":["../../src/models/components/fieldfilterpart.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;AAErE,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAeX,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEnD,eAAO,MAAM,EAAE;;;CAGL,CAAC;AACX,MAAM,MAAM,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,EAAE,EAAE,EAAE,CAAC;CACR,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,QAAQ,CAC7C,CAAC;AAExB,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,QAAQ,CAC7C,CAAC;AAEzB;;;GAGG;AACH,yBAAiB,SAAS,CAAC;IACzB,wDAAwD;IACjD,MAAM,aAAa;;;;;;;;;;;;;;;MAAyB,CAAC;IACpD,yDAAyD;IAClD,MAAM,cAAc;;;;;;;;;;;;;;;MAA0B,CAAC;CACvD;AAED,gBAAgB;AAChB,eAAO,MAAM,gBAAgB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,CAAoB,CAAC;AAE7E,gBAAgB;AAChB,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,CAAoB,CAAC;AAE9E;;;GAGG;AACH,yBAAiB,GAAG,CAAC;IACnB,kDAAkD;IAC3C,MAAM,aAAa;;;MAAmB,CAAC;IAC9C,mDAAmD;IAC5C,MAAM,cAAc;;;MAAoB,CAAC;CACjD;AAED,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAMf,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"}
|
|
@@ -1,116 +0,0 @@
|
|
|
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.fieldFilterPartFromJSON = exports.fieldFilterPartToJSON = exports.FieldFilterPart$ = exports.FieldFilterPart$outboundSchema = exports.FieldFilterPart$inboundSchema = exports.On$ = exports.On$outboundSchema = exports.On$inboundSchema = exports.Operator$ = exports.Operator$outboundSchema = exports.Operator$inboundSchema = exports.On = exports.Operator = void 0;
|
|
30
|
-
const z = __importStar(require("zod"));
|
|
31
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
-
exports.Operator = {
|
|
33
|
-
Larger: "LARGER",
|
|
34
|
-
Smaller: "SMALLER",
|
|
35
|
-
LargerEqual: "LARGER_EQUAL",
|
|
36
|
-
SmallerEqual: "SMALLER_EQUAL",
|
|
37
|
-
Equal: "EQUAL",
|
|
38
|
-
NotEqual: "NOT_EQUAL",
|
|
39
|
-
AllIn: "ALL_IN",
|
|
40
|
-
AnyIn: "ANY_IN",
|
|
41
|
-
NotIn: "NOT_IN",
|
|
42
|
-
Between: "BETWEEN",
|
|
43
|
-
NotBetween: "NOT_BETWEEN",
|
|
44
|
-
Like: "LIKE",
|
|
45
|
-
NotLike: "NOT_LIKE",
|
|
46
|
-
In: "IN",
|
|
47
|
-
};
|
|
48
|
-
exports.On = {
|
|
49
|
-
Subscriber: "subscriber",
|
|
50
|
-
Payload: "payload",
|
|
51
|
-
};
|
|
52
|
-
/** @internal */
|
|
53
|
-
exports.Operator$inboundSchema = z
|
|
54
|
-
.nativeEnum(exports.Operator);
|
|
55
|
-
/** @internal */
|
|
56
|
-
exports.Operator$outboundSchema = exports.Operator$inboundSchema;
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
-
*/
|
|
61
|
-
var Operator$;
|
|
62
|
-
(function (Operator$) {
|
|
63
|
-
/** @deprecated use `Operator$inboundSchema` instead. */
|
|
64
|
-
Operator$.inboundSchema = exports.Operator$inboundSchema;
|
|
65
|
-
/** @deprecated use `Operator$outboundSchema` instead. */
|
|
66
|
-
Operator$.outboundSchema = exports.Operator$outboundSchema;
|
|
67
|
-
})(Operator$ || (exports.Operator$ = Operator$ = {}));
|
|
68
|
-
/** @internal */
|
|
69
|
-
exports.On$inboundSchema = z.nativeEnum(exports.On);
|
|
70
|
-
/** @internal */
|
|
71
|
-
exports.On$outboundSchema = exports.On$inboundSchema;
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
-
*/
|
|
76
|
-
var On$;
|
|
77
|
-
(function (On$) {
|
|
78
|
-
/** @deprecated use `On$inboundSchema` instead. */
|
|
79
|
-
On$.inboundSchema = exports.On$inboundSchema;
|
|
80
|
-
/** @deprecated use `On$outboundSchema` instead. */
|
|
81
|
-
On$.outboundSchema = exports.On$outboundSchema;
|
|
82
|
-
})(On$ || (exports.On$ = On$ = {}));
|
|
83
|
-
/** @internal */
|
|
84
|
-
exports.FieldFilterPart$inboundSchema = z.object({
|
|
85
|
-
field: z.string(),
|
|
86
|
-
value: z.string(),
|
|
87
|
-
operator: exports.Operator$inboundSchema,
|
|
88
|
-
on: exports.On$inboundSchema,
|
|
89
|
-
});
|
|
90
|
-
/** @internal */
|
|
91
|
-
exports.FieldFilterPart$outboundSchema = z.object({
|
|
92
|
-
field: z.string(),
|
|
93
|
-
value: z.string(),
|
|
94
|
-
operator: exports.Operator$outboundSchema,
|
|
95
|
-
on: exports.On$outboundSchema,
|
|
96
|
-
});
|
|
97
|
-
/**
|
|
98
|
-
* @internal
|
|
99
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
100
|
-
*/
|
|
101
|
-
var FieldFilterPart$;
|
|
102
|
-
(function (FieldFilterPart$) {
|
|
103
|
-
/** @deprecated use `FieldFilterPart$inboundSchema` instead. */
|
|
104
|
-
FieldFilterPart$.inboundSchema = exports.FieldFilterPart$inboundSchema;
|
|
105
|
-
/** @deprecated use `FieldFilterPart$outboundSchema` instead. */
|
|
106
|
-
FieldFilterPart$.outboundSchema = exports.FieldFilterPart$outboundSchema;
|
|
107
|
-
})(FieldFilterPart$ || (exports.FieldFilterPart$ = FieldFilterPart$ = {}));
|
|
108
|
-
function fieldFilterPartToJSON(fieldFilterPart) {
|
|
109
|
-
return JSON.stringify(exports.FieldFilterPart$outboundSchema.parse(fieldFilterPart));
|
|
110
|
-
}
|
|
111
|
-
exports.fieldFilterPartToJSON = fieldFilterPartToJSON;
|
|
112
|
-
function fieldFilterPartFromJSON(jsonString) {
|
|
113
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FieldFilterPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FieldFilterPart' from JSON`);
|
|
114
|
-
}
|
|
115
|
-
exports.fieldFilterPartFromJSON = fieldFilterPartFromJSON;
|
|
116
|
-
//# sourceMappingURL=fieldfilterpart.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fieldfilterpart.js","sourceRoot":"","sources":["../../src/models/components/fieldfilterpart.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAKpC,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,aAAa;IACzB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,UAAU;IACnB,EAAE,EAAE,IAAI;CACA,CAAC;AAGE,QAAA,EAAE,GAAG;IAChB,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;CACV,CAAC;AAUX,gBAAgB;AACH,QAAA,sBAAsB,GAAqC,CAAC;KACtE,UAAU,CAAC,gBAAQ,CAAC,CAAC;AAExB,gBAAgB;AACH,QAAA,uBAAuB,GAClC,8BAAsB,CAAC;AAEzB;;;GAGG;AACH,IAAiB,SAAS,CAKzB;AALD,WAAiB,SAAS;IACxB,wDAAwD;IAC3C,uBAAa,GAAG,8BAAsB,CAAC;IACpD,yDAAyD;IAC5C,wBAAc,GAAG,+BAAuB,CAAC;AACxD,CAAC,EALgB,SAAS,yBAAT,SAAS,QAKzB;AAED,gBAAgB;AACH,QAAA,gBAAgB,GAA+B,CAAC,CAAC,UAAU,CAAC,UAAE,CAAC,CAAC;AAE7E,gBAAgB;AACH,QAAA,iBAAiB,GAA+B,wBAAgB,CAAC;AAE9E;;;GAGG;AACH,IAAiB,GAAG,CAKnB;AALD,WAAiB,GAAG;IAClB,kDAAkD;IACrC,iBAAa,GAAG,wBAAgB,CAAC;IAC9C,mDAAmD;IACtC,kBAAc,GAAG,yBAAiB,CAAC;AAClD,CAAC,EALgB,GAAG,mBAAH,GAAG,QAKnB;AAED,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,8BAAsB;IAChC,EAAE,EAAE,wBAAgB;CACrB,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,+BAAuB;IACjC,EAAE,EAAE,yBAAiB;CACtB,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"}
|
|
@@ -1,39 +0,0 @@
|
|
|
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 BuilderFieldType = {
|
|
9
|
-
Boolean: "BOOLEAN",
|
|
10
|
-
Text: "TEXT",
|
|
11
|
-
Date: "DATE",
|
|
12
|
-
Number: "NUMBER",
|
|
13
|
-
Statement: "STATEMENT",
|
|
14
|
-
List: "LIST",
|
|
15
|
-
MultiList: "MULTI_LIST",
|
|
16
|
-
Group: "GROUP",
|
|
17
|
-
} as const;
|
|
18
|
-
export type BuilderFieldType = ClosedEnum<typeof BuilderFieldType>;
|
|
19
|
-
|
|
20
|
-
/** @internal */
|
|
21
|
-
export const BuilderFieldType$inboundSchema: z.ZodNativeEnum<
|
|
22
|
-
typeof BuilderFieldType
|
|
23
|
-
> = z.nativeEnum(BuilderFieldType);
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const BuilderFieldType$outboundSchema: z.ZodNativeEnum<
|
|
27
|
-
typeof BuilderFieldType
|
|
28
|
-
> = BuilderFieldType$inboundSchema;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
-
*/
|
|
34
|
-
export namespace BuilderFieldType$ {
|
|
35
|
-
/** @deprecated use `BuilderFieldType$inboundSchema` instead. */
|
|
36
|
-
export const inboundSchema = BuilderFieldType$inboundSchema;
|
|
37
|
-
/** @deprecated use `BuilderFieldType$outboundSchema` instead. */
|
|
38
|
-
export const outboundSchema = BuilderFieldType$outboundSchema;
|
|
39
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export const Operator = {
|
|
12
|
-
Larger: "LARGER",
|
|
13
|
-
Smaller: "SMALLER",
|
|
14
|
-
LargerEqual: "LARGER_EQUAL",
|
|
15
|
-
SmallerEqual: "SMALLER_EQUAL",
|
|
16
|
-
Equal: "EQUAL",
|
|
17
|
-
NotEqual: "NOT_EQUAL",
|
|
18
|
-
AllIn: "ALL_IN",
|
|
19
|
-
AnyIn: "ANY_IN",
|
|
20
|
-
NotIn: "NOT_IN",
|
|
21
|
-
Between: "BETWEEN",
|
|
22
|
-
NotBetween: "NOT_BETWEEN",
|
|
23
|
-
Like: "LIKE",
|
|
24
|
-
NotLike: "NOT_LIKE",
|
|
25
|
-
In: "IN",
|
|
26
|
-
} as const;
|
|
27
|
-
export type Operator = ClosedEnum<typeof Operator>;
|
|
28
|
-
|
|
29
|
-
export const On = {
|
|
30
|
-
Subscriber: "subscriber",
|
|
31
|
-
Payload: "payload",
|
|
32
|
-
} as const;
|
|
33
|
-
export type On = ClosedEnum<typeof On>;
|
|
34
|
-
|
|
35
|
-
export type FieldFilterPart = {
|
|
36
|
-
field: string;
|
|
37
|
-
value: string;
|
|
38
|
-
operator: Operator;
|
|
39
|
-
on: On;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const Operator$inboundSchema: z.ZodNativeEnum<typeof Operator> = z
|
|
44
|
-
.nativeEnum(Operator);
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const Operator$outboundSchema: z.ZodNativeEnum<typeof Operator> =
|
|
48
|
-
Operator$inboundSchema;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
export namespace Operator$ {
|
|
55
|
-
/** @deprecated use `Operator$inboundSchema` instead. */
|
|
56
|
-
export const inboundSchema = Operator$inboundSchema;
|
|
57
|
-
/** @deprecated use `Operator$outboundSchema` instead. */
|
|
58
|
-
export const outboundSchema = Operator$outboundSchema;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/** @internal */
|
|
62
|
-
export const On$inboundSchema: z.ZodNativeEnum<typeof On> = z.nativeEnum(On);
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const On$outboundSchema: z.ZodNativeEnum<typeof On> = On$inboundSchema;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
-
*/
|
|
71
|
-
export namespace On$ {
|
|
72
|
-
/** @deprecated use `On$inboundSchema` instead. */
|
|
73
|
-
export const inboundSchema = On$inboundSchema;
|
|
74
|
-
/** @deprecated use `On$outboundSchema` instead. */
|
|
75
|
-
export const outboundSchema = On$outboundSchema;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/** @internal */
|
|
79
|
-
export const FieldFilterPart$inboundSchema: z.ZodType<
|
|
80
|
-
FieldFilterPart,
|
|
81
|
-
z.ZodTypeDef,
|
|
82
|
-
unknown
|
|
83
|
-
> = z.object({
|
|
84
|
-
field: z.string(),
|
|
85
|
-
value: z.string(),
|
|
86
|
-
operator: Operator$inboundSchema,
|
|
87
|
-
on: On$inboundSchema,
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
/** @internal */
|
|
91
|
-
export type FieldFilterPart$Outbound = {
|
|
92
|
-
field: string;
|
|
93
|
-
value: string;
|
|
94
|
-
operator: string;
|
|
95
|
-
on: string;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
/** @internal */
|
|
99
|
-
export const FieldFilterPart$outboundSchema: z.ZodType<
|
|
100
|
-
FieldFilterPart$Outbound,
|
|
101
|
-
z.ZodTypeDef,
|
|
102
|
-
FieldFilterPart
|
|
103
|
-
> = z.object({
|
|
104
|
-
field: z.string(),
|
|
105
|
-
value: z.string(),
|
|
106
|
-
operator: Operator$outboundSchema,
|
|
107
|
-
on: On$outboundSchema,
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @internal
|
|
112
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
113
|
-
*/
|
|
114
|
-
export namespace FieldFilterPart$ {
|
|
115
|
-
/** @deprecated use `FieldFilterPart$inboundSchema` instead. */
|
|
116
|
-
export const inboundSchema = FieldFilterPart$inboundSchema;
|
|
117
|
-
/** @deprecated use `FieldFilterPart$outboundSchema` instead. */
|
|
118
|
-
export const outboundSchema = FieldFilterPart$outboundSchema;
|
|
119
|
-
/** @deprecated use `FieldFilterPart$Outbound` instead. */
|
|
120
|
-
export type Outbound = FieldFilterPart$Outbound;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export function fieldFilterPartToJSON(
|
|
124
|
-
fieldFilterPart: FieldFilterPart,
|
|
125
|
-
): string {
|
|
126
|
-
return JSON.stringify(FieldFilterPart$outboundSchema.parse(fieldFilterPart));
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export function fieldFilterPartFromJSON(
|
|
130
|
-
jsonString: string,
|
|
131
|
-
): SafeParseResult<FieldFilterPart, SDKValidationError> {
|
|
132
|
-
return safeParse(
|
|
133
|
-
jsonString,
|
|
134
|
-
(x) => FieldFilterPart$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
-
`Failed to parse 'FieldFilterPart' from JSON`,
|
|
136
|
-
);
|
|
137
|
-
}
|