shred-api-client 2.9.8 → 2.9.9
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/index.d.ts +10 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3302,6 +3302,7 @@ declare const SpecialOfferSchema: z.ZodObject<{
|
|
|
3302
3302
|
description: z.ZodString;
|
|
3303
3303
|
ctaLabel: z.ZodString;
|
|
3304
3304
|
enabled: z.ZodBoolean;
|
|
3305
|
+
tenantIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3305
3306
|
}, "strip", z.ZodTypeAny, {
|
|
3306
3307
|
id: string;
|
|
3307
3308
|
title: string;
|
|
@@ -3312,6 +3313,7 @@ declare const SpecialOfferSchema: z.ZodObject<{
|
|
|
3312
3313
|
couponId: string;
|
|
3313
3314
|
ctaLabel: string;
|
|
3314
3315
|
enabled: boolean;
|
|
3316
|
+
tenantIds?: string[] | undefined;
|
|
3315
3317
|
}, {
|
|
3316
3318
|
id: string;
|
|
3317
3319
|
title: string;
|
|
@@ -3322,6 +3324,7 @@ declare const SpecialOfferSchema: z.ZodObject<{
|
|
|
3322
3324
|
couponId: string;
|
|
3323
3325
|
ctaLabel: string;
|
|
3324
3326
|
enabled: boolean;
|
|
3327
|
+
tenantIds?: string[] | undefined;
|
|
3325
3328
|
}>;
|
|
3326
3329
|
declare const UserOfferDetailsSchema: z.ZodObject<{
|
|
3327
3330
|
offerId: z.ZodString;
|
|
@@ -3350,6 +3353,7 @@ declare const CreateSpecialOfferSchema: z.ZodObject<{
|
|
|
3350
3353
|
title: z.ZodString;
|
|
3351
3354
|
description: z.ZodString;
|
|
3352
3355
|
ctaLabel: z.ZodString;
|
|
3356
|
+
tenantIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3353
3357
|
}, "strip", z.ZodTypeAny, {
|
|
3354
3358
|
title: string;
|
|
3355
3359
|
description: string;
|
|
@@ -3357,6 +3361,7 @@ declare const CreateSpecialOfferSchema: z.ZodObject<{
|
|
|
3357
3361
|
planId: string;
|
|
3358
3362
|
couponId: string;
|
|
3359
3363
|
ctaLabel: string;
|
|
3364
|
+
tenantIds?: string[] | undefined;
|
|
3360
3365
|
freeProjectsAllowed?: number | undefined;
|
|
3361
3366
|
}, {
|
|
3362
3367
|
title: string;
|
|
@@ -3365,6 +3370,7 @@ declare const CreateSpecialOfferSchema: z.ZodObject<{
|
|
|
3365
3370
|
planId: string;
|
|
3366
3371
|
couponId: string;
|
|
3367
3372
|
ctaLabel: string;
|
|
3373
|
+
tenantIds?: string[] | undefined;
|
|
3368
3374
|
freeProjectsAllowed?: number | undefined;
|
|
3369
3375
|
}>;
|
|
3370
3376
|
declare const UpdateSpecialOfferSchema: z.ZodObject<{
|
|
@@ -3375,9 +3381,11 @@ declare const UpdateSpecialOfferSchema: z.ZodObject<{
|
|
|
3375
3381
|
title: z.ZodOptional<z.ZodString>;
|
|
3376
3382
|
description: z.ZodOptional<z.ZodString>;
|
|
3377
3383
|
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
3384
|
+
tenantIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3378
3385
|
}, "strip", z.ZodTypeAny, {
|
|
3379
3386
|
title?: string | undefined;
|
|
3380
3387
|
description?: string | undefined;
|
|
3388
|
+
tenantIds?: string[] | undefined;
|
|
3381
3389
|
freeProjectsAllowed?: number | undefined;
|
|
3382
3390
|
windowHours?: number | undefined;
|
|
3383
3391
|
planId?: string | undefined;
|
|
@@ -3386,6 +3394,7 @@ declare const UpdateSpecialOfferSchema: z.ZodObject<{
|
|
|
3386
3394
|
}, {
|
|
3387
3395
|
title?: string | undefined;
|
|
3388
3396
|
description?: string | undefined;
|
|
3397
|
+
tenantIds?: string[] | undefined;
|
|
3389
3398
|
freeProjectsAllowed?: number | undefined;
|
|
3390
3399
|
windowHours?: number | undefined;
|
|
3391
3400
|
planId?: string | undefined;
|
|
@@ -3399,7 +3408,7 @@ type Update = z.infer<typeof UpdateSpecialOfferSchema>;
|
|
|
3399
3408
|
|
|
3400
3409
|
interface IAPI$1 {
|
|
3401
3410
|
list: (ctx: Context) => Promise<SpecialOffer[]>;
|
|
3402
|
-
getActive: (ctx: Context) => Promise<SpecialOffer
|
|
3411
|
+
getActive: (ctx: Context) => Promise<SpecialOffer[]>;
|
|
3403
3412
|
create: (ctx: Context, data: Create) => Promise<SpecialOffer>;
|
|
3404
3413
|
update: (ctx: Context, id: string, data: Update) => Promise<void>;
|
|
3405
3414
|
enable: (ctx: Context, id: string) => Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -5970,7 +5970,8 @@ var SpecialOfferSchema = external_exports.object({
|
|
|
5970
5970
|
title: external_exports.string(),
|
|
5971
5971
|
description: external_exports.string(),
|
|
5972
5972
|
ctaLabel: external_exports.string(),
|
|
5973
|
-
enabled: external_exports.boolean()
|
|
5973
|
+
enabled: external_exports.boolean(),
|
|
5974
|
+
tenantIds: external_exports.array(external_exports.string()).optional()
|
|
5974
5975
|
});
|
|
5975
5976
|
var UserOfferDetailsSchema = external_exports.object({
|
|
5976
5977
|
offerId: external_exports.string(),
|
|
@@ -5986,7 +5987,8 @@ var CreateSpecialOfferSchema = external_exports.object({
|
|
|
5986
5987
|
couponId: external_exports.string().min(1),
|
|
5987
5988
|
title: external_exports.string().min(1),
|
|
5988
5989
|
description: external_exports.string().min(1),
|
|
5989
|
-
ctaLabel: external_exports.string().min(1)
|
|
5990
|
+
ctaLabel: external_exports.string().min(1),
|
|
5991
|
+
tenantIds: external_exports.array(external_exports.string().min(1)).optional()
|
|
5990
5992
|
});
|
|
5991
5993
|
var UpdateSpecialOfferSchema = external_exports.object({
|
|
5992
5994
|
freeProjectsAllowed: external_exports.number().int().positive().optional(),
|
|
@@ -5995,7 +5997,8 @@ var UpdateSpecialOfferSchema = external_exports.object({
|
|
|
5995
5997
|
couponId: external_exports.string().min(1).optional(),
|
|
5996
5998
|
title: external_exports.string().min(1).optional(),
|
|
5997
5999
|
description: external_exports.string().min(1).optional(),
|
|
5998
|
-
ctaLabel: external_exports.string().min(1).optional()
|
|
6000
|
+
ctaLabel: external_exports.string().min(1).optional(),
|
|
6001
|
+
tenantIds: external_exports.array(external_exports.string().min(1)).optional()
|
|
5999
6002
|
});
|
|
6000
6003
|
|
|
6001
6004
|
// src/api/SpecialOffer.api.ts
|
|
@@ -6010,7 +6013,7 @@ var SpecialOfferAPI = class {
|
|
|
6010
6013
|
}
|
|
6011
6014
|
async getActive(ctx) {
|
|
6012
6015
|
const { uri, method } = Endpoints8.GetActive;
|
|
6013
|
-
return this.clientHTTP.makeRequest(this.env, uri, method, null, ctx,
|
|
6016
|
+
return this.clientHTTP.makeRequest(this.env, uri, method, null, ctx, external_exports.array(SpecialOfferSchema));
|
|
6014
6017
|
}
|
|
6015
6018
|
async create(ctx, data) {
|
|
6016
6019
|
const { uri, method } = Endpoints8.Create;
|