@nikthegeek/dreamsforlittles-shared 0.1.3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access.d.ts +360 -12
- package/dist/access.js +9 -2
- package/dist/access.js.map +1 -1
- package/dist/admin.d.ts +2300 -165
- package/dist/admin.js +128 -1
- package/dist/admin.js.map +1 -1
- package/dist/api.d.ts +5 -5
- package/dist/app-runtime-users.d.ts +464 -0
- package/dist/app-runtime-users.js +64 -0
- package/dist/app-runtime-users.js.map +1 -0
- package/dist/auth.d.ts +37 -4
- package/dist/auth.js +12 -4
- package/dist/auth.js.map +1 -1
- package/dist/client-notices.d.ts +77 -77
- package/dist/coach-acquisition.d.ts +47 -0
- package/dist/coach-acquisition.js +45 -0
- package/dist/coach-acquisition.js.map +1 -0
- package/dist/coach-activity-notifications.d.ts +16 -16
- package/dist/coach-family-chat.d.ts +1658 -0
- package/dist/coach-family-chat.js +342 -0
- package/dist/coach-family-chat.js.map +1 -0
- package/dist/coach-family-chat.test.d.ts +1 -0
- package/dist/coach-family-chat.test.js +129 -0
- package/dist/coach-family-chat.test.js.map +1 -0
- package/dist/coach-growth.d.ts +706 -0
- package/dist/coach-growth.js +191 -0
- package/dist/coach-growth.js.map +1 -0
- package/dist/coach-growth.test.d.ts +1 -0
- package/dist/coach-growth.test.js +113 -0
- package/dist/coach-growth.test.js.map +1 -0
- package/dist/coach.d.ts +61 -48
- package/dist/coach.js +4 -0
- package/dist/coach.js.map +1 -1
- package/dist/enums.d.ts +1 -1
- package/dist/enums.js +9 -1
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +15 -4
- package/dist/errors.js +33 -0
- package/dist/errors.js.map +1 -1
- package/dist/family-acquisition.d.ts +47 -0
- package/dist/family-acquisition.js +45 -0
- package/dist/family-acquisition.js.map +1 -0
- package/dist/family-acquisition.test.d.ts +1 -0
- package/dist/family-acquisition.test.js +121 -0
- package/dist/family-acquisition.test.js.map +1 -0
- package/dist/family-invitations.d.ts +2 -2
- package/dist/family-profile-artifacts.d.ts +28 -28
- package/dist/family.d.ts +1411 -147
- package/dist/family.js +27 -0
- package/dist/family.js.map +1 -1
- package/dist/geography.d.ts +15 -0
- package/dist/geography.js +45 -0
- package/dist/geography.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/invites.d.ts +6 -6
- package/dist/mobile-web-releases.d.ts +14 -14
- package/dist/native-app-updates.d.ts +339 -0
- package/dist/native-app-updates.js +106 -0
- package/dist/native-app-updates.js.map +1 -0
- package/dist/notification-banners.d.ts +12 -12
- package/dist/product-analytics.d.ts +276 -276
- package/dist/product-analytics.js +1 -0
- package/dist/product-analytics.js.map +1 -1
- package/dist/push-devices.d.ts +6 -6
- package/dist/realtime.d.ts +12 -12
- package/dist/support-tickets.d.ts +10 -10
- package/fixtures/coach-family-chat-push-v1.json +104 -0
- package/fixtures/coach-family-chat-push-v1.sha256 +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const nativeAppPlatformSchema: z.ZodEnum<["ios", "android"]>;
|
|
3
|
+
export declare const nativeAppUpdatePolicyStatusSchema: z.ZodEnum<["draft", "active", "paused", "archived"]>;
|
|
4
|
+
export declare const nativeAppUpdateCheckSeveritySchema: z.ZodEnum<["none", "recommended", "required"]>;
|
|
5
|
+
export declare const nativeAppUpdateStatusSchema: z.ZodEnum<["current", "updateAvailable", "updateRequired"]>;
|
|
6
|
+
export declare const nativeAppUpdateChannelSchema: z.ZodString;
|
|
7
|
+
export declare const nativeAppWrapperVersionSchema: z.ZodString;
|
|
8
|
+
export declare const nativeAppUpdatePolicySchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
channel: z.ZodString;
|
|
11
|
+
platform: z.ZodEnum<["ios", "android"]>;
|
|
12
|
+
status: z.ZodEnum<["draft", "active", "paused", "archived"]>;
|
|
13
|
+
latestWrapperVersion: z.ZodString;
|
|
14
|
+
minSupportedWrapperVersion: z.ZodString;
|
|
15
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
iosAppStoreId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
androidPackageName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
releasedAt: z.ZodString;
|
|
20
|
+
createdAt: z.ZodString;
|
|
21
|
+
updatedAt: z.ZodString;
|
|
22
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
status: "active" | "archived" | "paused" | "draft";
|
|
25
|
+
id: string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
platform: "ios" | "android";
|
|
29
|
+
latestWrapperVersion: string;
|
|
30
|
+
minSupportedWrapperVersion: string;
|
|
31
|
+
releasedAt: string;
|
|
32
|
+
channel: string;
|
|
33
|
+
message?: string | null | undefined;
|
|
34
|
+
createdBy?: string | null | undefined;
|
|
35
|
+
title?: string | null | undefined;
|
|
36
|
+
iosAppStoreId?: string | null | undefined;
|
|
37
|
+
androidPackageName?: string | null | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
status: "active" | "archived" | "paused" | "draft";
|
|
40
|
+
id: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
platform: "ios" | "android";
|
|
44
|
+
latestWrapperVersion: string;
|
|
45
|
+
minSupportedWrapperVersion: string;
|
|
46
|
+
releasedAt: string;
|
|
47
|
+
channel: string;
|
|
48
|
+
message?: string | null | undefined;
|
|
49
|
+
createdBy?: string | null | undefined;
|
|
50
|
+
title?: string | null | undefined;
|
|
51
|
+
iosAppStoreId?: string | null | undefined;
|
|
52
|
+
androidPackageName?: string | null | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
export declare const createNativeAppUpdatePolicyRequestSchema: z.ZodObject<{
|
|
55
|
+
channel: z.ZodDefault<z.ZodString>;
|
|
56
|
+
platform: z.ZodEnum<["ios", "android"]>;
|
|
57
|
+
status: z.ZodDefault<z.ZodEnum<["draft", "active", "paused", "archived"]>>;
|
|
58
|
+
latestWrapperVersion: z.ZodString;
|
|
59
|
+
minSupportedWrapperVersion: z.ZodDefault<z.ZodString>;
|
|
60
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
iosAppStoreId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
androidPackageName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
releasedAt: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, "strict", z.ZodTypeAny, {
|
|
66
|
+
status: "active" | "archived" | "paused" | "draft";
|
|
67
|
+
platform: "ios" | "android";
|
|
68
|
+
latestWrapperVersion: string;
|
|
69
|
+
minSupportedWrapperVersion: string;
|
|
70
|
+
channel: string;
|
|
71
|
+
message?: string | null | undefined;
|
|
72
|
+
title?: string | null | undefined;
|
|
73
|
+
releasedAt?: string | undefined;
|
|
74
|
+
iosAppStoreId?: string | null | undefined;
|
|
75
|
+
androidPackageName?: string | null | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
platform: "ios" | "android";
|
|
78
|
+
latestWrapperVersion: string;
|
|
79
|
+
message?: string | null | undefined;
|
|
80
|
+
status?: "active" | "archived" | "paused" | "draft" | undefined;
|
|
81
|
+
title?: string | null | undefined;
|
|
82
|
+
minSupportedWrapperVersion?: string | undefined;
|
|
83
|
+
releasedAt?: string | undefined;
|
|
84
|
+
channel?: string | undefined;
|
|
85
|
+
iosAppStoreId?: string | null | undefined;
|
|
86
|
+
androidPackageName?: string | null | undefined;
|
|
87
|
+
}>;
|
|
88
|
+
export declare const updateNativeAppUpdatePolicyRequestSchema: z.ZodObject<{
|
|
89
|
+
status: z.ZodOptional<z.ZodEnum<["draft", "active", "paused", "archived"]>>;
|
|
90
|
+
minSupportedWrapperVersion: z.ZodOptional<z.ZodString>;
|
|
91
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
iosAppStoreId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
androidPackageName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
}, "strict", z.ZodTypeAny, {
|
|
96
|
+
message?: string | null | undefined;
|
|
97
|
+
status?: "active" | "archived" | "paused" | "draft" | undefined;
|
|
98
|
+
title?: string | null | undefined;
|
|
99
|
+
minSupportedWrapperVersion?: string | undefined;
|
|
100
|
+
iosAppStoreId?: string | null | undefined;
|
|
101
|
+
androidPackageName?: string | null | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
message?: string | null | undefined;
|
|
104
|
+
status?: "active" | "archived" | "paused" | "draft" | undefined;
|
|
105
|
+
title?: string | null | undefined;
|
|
106
|
+
minSupportedWrapperVersion?: string | undefined;
|
|
107
|
+
iosAppStoreId?: string | null | undefined;
|
|
108
|
+
androidPackageName?: string | null | undefined;
|
|
109
|
+
}>;
|
|
110
|
+
export declare const nativeAppUpdateCheckQuerySchema: z.ZodObject<{
|
|
111
|
+
channel: z.ZodDefault<z.ZodString>;
|
|
112
|
+
platform: z.ZodEnum<["ios", "android"]>;
|
|
113
|
+
wrapperVersion: z.ZodString;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
wrapperVersion: string;
|
|
116
|
+
platform: "ios" | "android";
|
|
117
|
+
channel: string;
|
|
118
|
+
}, {
|
|
119
|
+
wrapperVersion: string;
|
|
120
|
+
platform: "ios" | "android";
|
|
121
|
+
channel?: string | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
export declare const nativeAppUpdateCheckResponseSchema: z.ZodObject<{
|
|
124
|
+
status: z.ZodEnum<["current", "updateAvailable", "updateRequired"]>;
|
|
125
|
+
severity: z.ZodEnum<["none", "recommended", "required"]>;
|
|
126
|
+
channel: z.ZodString;
|
|
127
|
+
platform: z.ZodEnum<["ios", "android"]>;
|
|
128
|
+
currentWrapperVersion: z.ZodString;
|
|
129
|
+
latestWrapperVersion: z.ZodNullable<z.ZodString>;
|
|
130
|
+
minSupportedWrapperVersion: z.ZodNullable<z.ZodString>;
|
|
131
|
+
title: z.ZodNullable<z.ZodString>;
|
|
132
|
+
message: z.ZodNullable<z.ZodString>;
|
|
133
|
+
iosAppStoreId: z.ZodNullable<z.ZodString>;
|
|
134
|
+
androidPackageName: z.ZodNullable<z.ZodString>;
|
|
135
|
+
releasedAt: z.ZodNullable<z.ZodString>;
|
|
136
|
+
policyId: z.ZodNullable<z.ZodString>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
message: string | null;
|
|
139
|
+
status: "current" | "updateAvailable" | "updateRequired";
|
|
140
|
+
title: string | null;
|
|
141
|
+
platform: "ios" | "android";
|
|
142
|
+
latestWrapperVersion: string | null;
|
|
143
|
+
minSupportedWrapperVersion: string | null;
|
|
144
|
+
severity: "none" | "required" | "recommended";
|
|
145
|
+
releasedAt: string | null;
|
|
146
|
+
channel: string;
|
|
147
|
+
iosAppStoreId: string | null;
|
|
148
|
+
androidPackageName: string | null;
|
|
149
|
+
currentWrapperVersion: string;
|
|
150
|
+
policyId: string | null;
|
|
151
|
+
}, {
|
|
152
|
+
message: string | null;
|
|
153
|
+
status: "current" | "updateAvailable" | "updateRequired";
|
|
154
|
+
title: string | null;
|
|
155
|
+
platform: "ios" | "android";
|
|
156
|
+
latestWrapperVersion: string | null;
|
|
157
|
+
minSupportedWrapperVersion: string | null;
|
|
158
|
+
severity: "none" | "required" | "recommended";
|
|
159
|
+
releasedAt: string | null;
|
|
160
|
+
channel: string;
|
|
161
|
+
iosAppStoreId: string | null;
|
|
162
|
+
androidPackageName: string | null;
|
|
163
|
+
currentWrapperVersion: string;
|
|
164
|
+
policyId: string | null;
|
|
165
|
+
}>;
|
|
166
|
+
export declare const nativeAppUpdatePolicyListResponseSchema: z.ZodObject<{
|
|
167
|
+
policies: z.ZodArray<z.ZodObject<{
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
channel: z.ZodString;
|
|
170
|
+
platform: z.ZodEnum<["ios", "android"]>;
|
|
171
|
+
status: z.ZodEnum<["draft", "active", "paused", "archived"]>;
|
|
172
|
+
latestWrapperVersion: z.ZodString;
|
|
173
|
+
minSupportedWrapperVersion: z.ZodString;
|
|
174
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
|
+
iosAppStoreId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
|
+
androidPackageName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
|
+
releasedAt: z.ZodString;
|
|
179
|
+
createdAt: z.ZodString;
|
|
180
|
+
updatedAt: z.ZodString;
|
|
181
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
status: "active" | "archived" | "paused" | "draft";
|
|
184
|
+
id: string;
|
|
185
|
+
createdAt: string;
|
|
186
|
+
updatedAt: string;
|
|
187
|
+
platform: "ios" | "android";
|
|
188
|
+
latestWrapperVersion: string;
|
|
189
|
+
minSupportedWrapperVersion: string;
|
|
190
|
+
releasedAt: string;
|
|
191
|
+
channel: string;
|
|
192
|
+
message?: string | null | undefined;
|
|
193
|
+
createdBy?: string | null | undefined;
|
|
194
|
+
title?: string | null | undefined;
|
|
195
|
+
iosAppStoreId?: string | null | undefined;
|
|
196
|
+
androidPackageName?: string | null | undefined;
|
|
197
|
+
}, {
|
|
198
|
+
status: "active" | "archived" | "paused" | "draft";
|
|
199
|
+
id: string;
|
|
200
|
+
createdAt: string;
|
|
201
|
+
updatedAt: string;
|
|
202
|
+
platform: "ios" | "android";
|
|
203
|
+
latestWrapperVersion: string;
|
|
204
|
+
minSupportedWrapperVersion: string;
|
|
205
|
+
releasedAt: string;
|
|
206
|
+
channel: string;
|
|
207
|
+
message?: string | null | undefined;
|
|
208
|
+
createdBy?: string | null | undefined;
|
|
209
|
+
title?: string | null | undefined;
|
|
210
|
+
iosAppStoreId?: string | null | undefined;
|
|
211
|
+
androidPackageName?: string | null | undefined;
|
|
212
|
+
}>, "many">;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
policies: {
|
|
215
|
+
status: "active" | "archived" | "paused" | "draft";
|
|
216
|
+
id: string;
|
|
217
|
+
createdAt: string;
|
|
218
|
+
updatedAt: string;
|
|
219
|
+
platform: "ios" | "android";
|
|
220
|
+
latestWrapperVersion: string;
|
|
221
|
+
minSupportedWrapperVersion: string;
|
|
222
|
+
releasedAt: string;
|
|
223
|
+
channel: string;
|
|
224
|
+
message?: string | null | undefined;
|
|
225
|
+
createdBy?: string | null | undefined;
|
|
226
|
+
title?: string | null | undefined;
|
|
227
|
+
iosAppStoreId?: string | null | undefined;
|
|
228
|
+
androidPackageName?: string | null | undefined;
|
|
229
|
+
}[];
|
|
230
|
+
}, {
|
|
231
|
+
policies: {
|
|
232
|
+
status: "active" | "archived" | "paused" | "draft";
|
|
233
|
+
id: string;
|
|
234
|
+
createdAt: string;
|
|
235
|
+
updatedAt: string;
|
|
236
|
+
platform: "ios" | "android";
|
|
237
|
+
latestWrapperVersion: string;
|
|
238
|
+
minSupportedWrapperVersion: string;
|
|
239
|
+
releasedAt: string;
|
|
240
|
+
channel: string;
|
|
241
|
+
message?: string | null | undefined;
|
|
242
|
+
createdBy?: string | null | undefined;
|
|
243
|
+
title?: string | null | undefined;
|
|
244
|
+
iosAppStoreId?: string | null | undefined;
|
|
245
|
+
androidPackageName?: string | null | undefined;
|
|
246
|
+
}[];
|
|
247
|
+
}>;
|
|
248
|
+
export declare const nativeAppUpdatePolicyResponseSchema: z.ZodObject<{
|
|
249
|
+
policy: z.ZodObject<{
|
|
250
|
+
id: z.ZodString;
|
|
251
|
+
channel: z.ZodString;
|
|
252
|
+
platform: z.ZodEnum<["ios", "android"]>;
|
|
253
|
+
status: z.ZodEnum<["draft", "active", "paused", "archived"]>;
|
|
254
|
+
latestWrapperVersion: z.ZodString;
|
|
255
|
+
minSupportedWrapperVersion: z.ZodString;
|
|
256
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
257
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
|
+
iosAppStoreId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
259
|
+
androidPackageName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
|
+
releasedAt: z.ZodString;
|
|
261
|
+
createdAt: z.ZodString;
|
|
262
|
+
updatedAt: z.ZodString;
|
|
263
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
status: "active" | "archived" | "paused" | "draft";
|
|
266
|
+
id: string;
|
|
267
|
+
createdAt: string;
|
|
268
|
+
updatedAt: string;
|
|
269
|
+
platform: "ios" | "android";
|
|
270
|
+
latestWrapperVersion: string;
|
|
271
|
+
minSupportedWrapperVersion: string;
|
|
272
|
+
releasedAt: string;
|
|
273
|
+
channel: string;
|
|
274
|
+
message?: string | null | undefined;
|
|
275
|
+
createdBy?: string | null | undefined;
|
|
276
|
+
title?: string | null | undefined;
|
|
277
|
+
iosAppStoreId?: string | null | undefined;
|
|
278
|
+
androidPackageName?: string | null | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
status: "active" | "archived" | "paused" | "draft";
|
|
281
|
+
id: string;
|
|
282
|
+
createdAt: string;
|
|
283
|
+
updatedAt: string;
|
|
284
|
+
platform: "ios" | "android";
|
|
285
|
+
latestWrapperVersion: string;
|
|
286
|
+
minSupportedWrapperVersion: string;
|
|
287
|
+
releasedAt: string;
|
|
288
|
+
channel: string;
|
|
289
|
+
message?: string | null | undefined;
|
|
290
|
+
createdBy?: string | null | undefined;
|
|
291
|
+
title?: string | null | undefined;
|
|
292
|
+
iosAppStoreId?: string | null | undefined;
|
|
293
|
+
androidPackageName?: string | null | undefined;
|
|
294
|
+
}>;
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
|
+
policy: {
|
|
297
|
+
status: "active" | "archived" | "paused" | "draft";
|
|
298
|
+
id: string;
|
|
299
|
+
createdAt: string;
|
|
300
|
+
updatedAt: string;
|
|
301
|
+
platform: "ios" | "android";
|
|
302
|
+
latestWrapperVersion: string;
|
|
303
|
+
minSupportedWrapperVersion: string;
|
|
304
|
+
releasedAt: string;
|
|
305
|
+
channel: string;
|
|
306
|
+
message?: string | null | undefined;
|
|
307
|
+
createdBy?: string | null | undefined;
|
|
308
|
+
title?: string | null | undefined;
|
|
309
|
+
iosAppStoreId?: string | null | undefined;
|
|
310
|
+
androidPackageName?: string | null | undefined;
|
|
311
|
+
};
|
|
312
|
+
}, {
|
|
313
|
+
policy: {
|
|
314
|
+
status: "active" | "archived" | "paused" | "draft";
|
|
315
|
+
id: string;
|
|
316
|
+
createdAt: string;
|
|
317
|
+
updatedAt: string;
|
|
318
|
+
platform: "ios" | "android";
|
|
319
|
+
latestWrapperVersion: string;
|
|
320
|
+
minSupportedWrapperVersion: string;
|
|
321
|
+
releasedAt: string;
|
|
322
|
+
channel: string;
|
|
323
|
+
message?: string | null | undefined;
|
|
324
|
+
createdBy?: string | null | undefined;
|
|
325
|
+
title?: string | null | undefined;
|
|
326
|
+
iosAppStoreId?: string | null | undefined;
|
|
327
|
+
androidPackageName?: string | null | undefined;
|
|
328
|
+
};
|
|
329
|
+
}>;
|
|
330
|
+
export type NativeAppPlatform = z.infer<typeof nativeAppPlatformSchema>;
|
|
331
|
+
export type NativeAppUpdatePolicyStatus = z.infer<typeof nativeAppUpdatePolicyStatusSchema>;
|
|
332
|
+
export type NativeAppUpdateStatus = z.infer<typeof nativeAppUpdateStatusSchema>;
|
|
333
|
+
export type NativeAppUpdatePolicy = z.infer<typeof nativeAppUpdatePolicySchema>;
|
|
334
|
+
export type CreateNativeAppUpdatePolicyRequest = z.infer<typeof createNativeAppUpdatePolicyRequestSchema>;
|
|
335
|
+
export type UpdateNativeAppUpdatePolicyRequest = z.infer<typeof updateNativeAppUpdatePolicyRequestSchema>;
|
|
336
|
+
export type NativeAppUpdateCheckQuery = z.infer<typeof nativeAppUpdateCheckQuerySchema>;
|
|
337
|
+
export type NativeAppUpdateCheckResponse = z.infer<typeof nativeAppUpdateCheckResponseSchema>;
|
|
338
|
+
export type NativeAppUpdatePolicyListResponse = z.infer<typeof nativeAppUpdatePolicyListResponseSchema>;
|
|
339
|
+
export type NativeAppUpdatePolicyResponse = z.infer<typeof nativeAppUpdatePolicyResponseSchema>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { idSchema, isoDateStringSchema } from "./api.js";
|
|
3
|
+
export const nativeAppPlatformSchema = z.enum(["ios", "android"]);
|
|
4
|
+
export const nativeAppUpdatePolicyStatusSchema = z.enum([
|
|
5
|
+
"draft",
|
|
6
|
+
"active",
|
|
7
|
+
"paused",
|
|
8
|
+
"archived"
|
|
9
|
+
]);
|
|
10
|
+
export const nativeAppUpdateCheckSeveritySchema = z.enum([
|
|
11
|
+
"none",
|
|
12
|
+
"recommended",
|
|
13
|
+
"required"
|
|
14
|
+
]);
|
|
15
|
+
export const nativeAppUpdateStatusSchema = z.enum([
|
|
16
|
+
"current",
|
|
17
|
+
"updateAvailable",
|
|
18
|
+
"updateRequired"
|
|
19
|
+
]);
|
|
20
|
+
export const nativeAppUpdateChannelSchema = z
|
|
21
|
+
.string()
|
|
22
|
+
.min(1)
|
|
23
|
+
.max(64)
|
|
24
|
+
.regex(/^[a-z0-9][a-z0-9-]*$/);
|
|
25
|
+
export const nativeAppWrapperVersionSchema = z.string().min(1).max(64);
|
|
26
|
+
const nullableTitleSchema = z.string().min(1).max(120).nullable();
|
|
27
|
+
const nullableMessageSchema = z.string().min(1).max(500).nullable();
|
|
28
|
+
const nullableStoreIdSchema = z
|
|
29
|
+
.string()
|
|
30
|
+
.min(1)
|
|
31
|
+
.max(64)
|
|
32
|
+
.regex(/^(?:id)?\d+$/i)
|
|
33
|
+
.nullable();
|
|
34
|
+
const nullablePackageNameSchema = z
|
|
35
|
+
.string()
|
|
36
|
+
.min(1)
|
|
37
|
+
.max(200)
|
|
38
|
+
.regex(/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)+$/)
|
|
39
|
+
.nullable();
|
|
40
|
+
export const nativeAppUpdatePolicySchema = z.object({
|
|
41
|
+
id: idSchema,
|
|
42
|
+
channel: nativeAppUpdateChannelSchema,
|
|
43
|
+
platform: nativeAppPlatformSchema,
|
|
44
|
+
status: nativeAppUpdatePolicyStatusSchema,
|
|
45
|
+
latestWrapperVersion: nativeAppWrapperVersionSchema,
|
|
46
|
+
minSupportedWrapperVersion: nativeAppWrapperVersionSchema,
|
|
47
|
+
title: nullableTitleSchema.optional(),
|
|
48
|
+
message: nullableMessageSchema.optional(),
|
|
49
|
+
iosAppStoreId: nullableStoreIdSchema.optional(),
|
|
50
|
+
androidPackageName: nullablePackageNameSchema.optional(),
|
|
51
|
+
releasedAt: isoDateStringSchema,
|
|
52
|
+
createdAt: isoDateStringSchema,
|
|
53
|
+
updatedAt: isoDateStringSchema,
|
|
54
|
+
createdBy: idSchema.nullable().optional()
|
|
55
|
+
});
|
|
56
|
+
export const createNativeAppUpdatePolicyRequestSchema = z
|
|
57
|
+
.object({
|
|
58
|
+
channel: nativeAppUpdateChannelSchema.default("production"),
|
|
59
|
+
platform: nativeAppPlatformSchema,
|
|
60
|
+
status: nativeAppUpdatePolicyStatusSchema.default("draft"),
|
|
61
|
+
latestWrapperVersion: nativeAppWrapperVersionSchema,
|
|
62
|
+
minSupportedWrapperVersion: nativeAppWrapperVersionSchema.default("0.0.0"),
|
|
63
|
+
title: nullableTitleSchema.optional(),
|
|
64
|
+
message: nullableMessageSchema.optional(),
|
|
65
|
+
iosAppStoreId: nullableStoreIdSchema.optional(),
|
|
66
|
+
androidPackageName: nullablePackageNameSchema.optional(),
|
|
67
|
+
releasedAt: isoDateStringSchema.optional()
|
|
68
|
+
})
|
|
69
|
+
.strict();
|
|
70
|
+
export const updateNativeAppUpdatePolicyRequestSchema = z
|
|
71
|
+
.object({
|
|
72
|
+
status: nativeAppUpdatePolicyStatusSchema.optional(),
|
|
73
|
+
minSupportedWrapperVersion: nativeAppWrapperVersionSchema.optional(),
|
|
74
|
+
title: nullableTitleSchema.optional(),
|
|
75
|
+
message: nullableMessageSchema.optional(),
|
|
76
|
+
iosAppStoreId: nullableStoreIdSchema.optional(),
|
|
77
|
+
androidPackageName: nullablePackageNameSchema.optional()
|
|
78
|
+
})
|
|
79
|
+
.strict();
|
|
80
|
+
export const nativeAppUpdateCheckQuerySchema = z.object({
|
|
81
|
+
channel: nativeAppUpdateChannelSchema.default("production"),
|
|
82
|
+
platform: nativeAppPlatformSchema,
|
|
83
|
+
wrapperVersion: nativeAppWrapperVersionSchema
|
|
84
|
+
});
|
|
85
|
+
export const nativeAppUpdateCheckResponseSchema = z.object({
|
|
86
|
+
status: nativeAppUpdateStatusSchema,
|
|
87
|
+
severity: nativeAppUpdateCheckSeveritySchema,
|
|
88
|
+
channel: nativeAppUpdateChannelSchema,
|
|
89
|
+
platform: nativeAppPlatformSchema,
|
|
90
|
+
currentWrapperVersion: nativeAppWrapperVersionSchema,
|
|
91
|
+
latestWrapperVersion: nativeAppWrapperVersionSchema.nullable(),
|
|
92
|
+
minSupportedWrapperVersion: nativeAppWrapperVersionSchema.nullable(),
|
|
93
|
+
title: z.string().nullable(),
|
|
94
|
+
message: z.string().nullable(),
|
|
95
|
+
iosAppStoreId: z.string().nullable(),
|
|
96
|
+
androidPackageName: z.string().nullable(),
|
|
97
|
+
releasedAt: isoDateStringSchema.nullable(),
|
|
98
|
+
policyId: idSchema.nullable()
|
|
99
|
+
});
|
|
100
|
+
export const nativeAppUpdatePolicyListResponseSchema = z.object({
|
|
101
|
+
policies: z.array(nativeAppUpdatePolicySchema)
|
|
102
|
+
});
|
|
103
|
+
export const nativeAppUpdatePolicyResponseSchema = z.object({
|
|
104
|
+
policy: nativeAppUpdatePolicySchema
|
|
105
|
+
});
|
|
106
|
+
//# sourceMappingURL=native-app-updates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-app-updates.js","sourceRoot":"","sources":["../src/native-app-updates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;AAClE,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC;IACtD,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,UAAU;CACX,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC;IACvD,MAAM;IACN,aAAa;IACb,UAAU;CACX,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC;IAChD,SAAS;IACT,iBAAiB;IACjB,gBAAgB;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAEjC,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC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,EAAE,kCAAkC;IAC5C,OAAO,EAAE,4BAA4B;IACrC,QAAQ,EAAE,uBAAuB;IACjC,qBAAqB,EAAE,6BAA6B;IACpD,oBAAoB,EAAE,6BAA6B,CAAC,QAAQ,EAAE;IAC9D,0BAA0B,EAAE,6BAA6B,CAAC,QAAQ,EAAE;IACpE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,UAAU,EAAE,mBAAmB,CAAC,QAAQ,EAAE;IAC1C,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC;CAC/C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,MAAM,EAAE,2BAA2B;CACpC,CAAC,CAAC"}
|
|
@@ -123,9 +123,9 @@ export declare const notificationBannerStatusUpdateRequestSchema: z.ZodObject<{
|
|
|
123
123
|
export declare const notificationBannerEligibleQuerySchema: z.ZodObject<{
|
|
124
124
|
platform: z.ZodOptional<z.ZodEnum<["ios", "android", "web", "all"]>>;
|
|
125
125
|
}, "strict", z.ZodTypeAny, {
|
|
126
|
-
platform?: "ios" | "android" | "
|
|
126
|
+
platform?: "ios" | "android" | "web" | "all" | undefined;
|
|
127
127
|
}, {
|
|
128
|
-
platform?: "ios" | "android" | "
|
|
128
|
+
platform?: "ios" | "android" | "web" | "all" | undefined;
|
|
129
129
|
}>;
|
|
130
130
|
export declare const notificationBannerReceiptEventRequestSchema: z.ZodObject<{
|
|
131
131
|
event: z.ZodEnum<["seen", "dismissed", "clicked"]>;
|
|
@@ -192,7 +192,7 @@ export declare const notificationBannerSchema: z.ZodObject<{
|
|
|
192
192
|
subtitle?: string | null | undefined;
|
|
193
193
|
linkText?: string | null | undefined;
|
|
194
194
|
linkUrl?: string | null | undefined;
|
|
195
|
-
platforms?: ("ios" | "android" | "
|
|
195
|
+
platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
|
|
196
196
|
publishedBy?: string | null | undefined;
|
|
197
197
|
}, {
|
|
198
198
|
status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
|
|
@@ -219,7 +219,7 @@ export declare const notificationBannerSchema: z.ZodObject<{
|
|
|
219
219
|
linkUrl?: string | null | undefined;
|
|
220
220
|
includeEmails?: string[] | undefined;
|
|
221
221
|
excludeEmails?: string[] | undefined;
|
|
222
|
-
platforms?: ("ios" | "android" | "
|
|
222
|
+
platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
|
|
223
223
|
publishedBy?: string | null | undefined;
|
|
224
224
|
}>;
|
|
225
225
|
export declare const notificationBannerReceiptSchema: z.ZodObject<{
|
|
@@ -312,7 +312,7 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
|
|
|
312
312
|
subtitle?: string | null | undefined;
|
|
313
313
|
linkText?: string | null | undefined;
|
|
314
314
|
linkUrl?: string | null | undefined;
|
|
315
|
-
platforms?: ("ios" | "android" | "
|
|
315
|
+
platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
|
|
316
316
|
publishedBy?: string | null | undefined;
|
|
317
317
|
}, {
|
|
318
318
|
status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
|
|
@@ -339,7 +339,7 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
|
|
|
339
339
|
linkUrl?: string | null | undefined;
|
|
340
340
|
includeEmails?: string[] | undefined;
|
|
341
341
|
excludeEmails?: string[] | undefined;
|
|
342
|
-
platforms?: ("ios" | "android" | "
|
|
342
|
+
platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
|
|
343
343
|
publishedBy?: string | null | undefined;
|
|
344
344
|
}>, "many">;
|
|
345
345
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -368,7 +368,7 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
|
|
|
368
368
|
subtitle?: string | null | undefined;
|
|
369
369
|
linkText?: string | null | undefined;
|
|
370
370
|
linkUrl?: string | null | undefined;
|
|
371
|
-
platforms?: ("ios" | "android" | "
|
|
371
|
+
platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
|
|
372
372
|
publishedBy?: string | null | undefined;
|
|
373
373
|
}[];
|
|
374
374
|
}, {
|
|
@@ -397,7 +397,7 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
|
|
|
397
397
|
linkUrl?: string | null | undefined;
|
|
398
398
|
includeEmails?: string[] | undefined;
|
|
399
399
|
excludeEmails?: string[] | undefined;
|
|
400
|
-
platforms?: ("ios" | "android" | "
|
|
400
|
+
platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
|
|
401
401
|
publishedBy?: string | null | undefined;
|
|
402
402
|
}[];
|
|
403
403
|
}>;
|
|
@@ -454,7 +454,7 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
|
|
|
454
454
|
subtitle?: string | null | undefined;
|
|
455
455
|
linkText?: string | null | undefined;
|
|
456
456
|
linkUrl?: string | null | undefined;
|
|
457
|
-
platforms?: ("ios" | "android" | "
|
|
457
|
+
platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
|
|
458
458
|
publishedBy?: string | null | undefined;
|
|
459
459
|
}, {
|
|
460
460
|
status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
|
|
@@ -481,7 +481,7 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
|
|
|
481
481
|
linkUrl?: string | null | undefined;
|
|
482
482
|
includeEmails?: string[] | undefined;
|
|
483
483
|
excludeEmails?: string[] | undefined;
|
|
484
|
-
platforms?: ("ios" | "android" | "
|
|
484
|
+
platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
|
|
485
485
|
publishedBy?: string | null | undefined;
|
|
486
486
|
}>;
|
|
487
487
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -510,7 +510,7 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
|
|
|
510
510
|
subtitle?: string | null | undefined;
|
|
511
511
|
linkText?: string | null | undefined;
|
|
512
512
|
linkUrl?: string | null | undefined;
|
|
513
|
-
platforms?: ("ios" | "android" | "
|
|
513
|
+
platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
|
|
514
514
|
publishedBy?: string | null | undefined;
|
|
515
515
|
};
|
|
516
516
|
}, {
|
|
@@ -539,7 +539,7 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
|
|
|
539
539
|
linkUrl?: string | null | undefined;
|
|
540
540
|
includeEmails?: string[] | undefined;
|
|
541
541
|
excludeEmails?: string[] | undefined;
|
|
542
|
-
platforms?: ("ios" | "android" | "
|
|
542
|
+
platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
|
|
543
543
|
publishedBy?: string | null | undefined;
|
|
544
544
|
};
|
|
545
545
|
}>;
|