shred-api-client 2.5.0 → 2.5.1

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.js CHANGED
@@ -5795,6 +5795,42 @@ var NoteAPI = class {
5795
5795
  };
5796
5796
  var Note_api_default = NoteAPI;
5797
5797
 
5798
+ // src/model/special-offer/SpecialOffer.api.ts
5799
+ var Endpoints7 = {
5800
+ List: {
5801
+ uri: "/special-offers/",
5802
+ method: "GET"
5803
+ },
5804
+ GetActive: {
5805
+ uri: "/special-offers/active",
5806
+ method: "GET"
5807
+ },
5808
+ Create: {
5809
+ uri: "/special-offers/",
5810
+ method: "POST"
5811
+ },
5812
+ Update: {
5813
+ uri: "/special-offers/:id",
5814
+ method: "PUT"
5815
+ },
5816
+ Enable: {
5817
+ uri: "/special-offers/:id/enable",
5818
+ method: "PUT"
5819
+ },
5820
+ Disable: {
5821
+ uri: "/special-offers/:id/disable",
5822
+ method: "PUT"
5823
+ },
5824
+ GetMyOffer: {
5825
+ uri: "/special-offers/my-offer",
5826
+ method: "GET"
5827
+ },
5828
+ Claim: {
5829
+ uri: "/special-offers/claim",
5830
+ method: "POST"
5831
+ }
5832
+ };
5833
+
5798
5834
  // src/model/special-offer/SpecialOffer.schema.ts
5799
5835
  var SpecialOfferSchema = external_exports.object({
5800
5836
  id: external_exports.string(),
@@ -5840,35 +5876,35 @@ var SpecialOfferAPI = class {
5840
5876
  this.clientHTTP = new HTTPClient();
5841
5877
  }
5842
5878
  async list(ctx) {
5843
- const { uri, method } = special_offer_exports.Endpoints.List;
5879
+ const { uri, method } = Endpoints7.List;
5844
5880
  return this.clientHTTP.makeRequest(this.env, uri, method, null, ctx, external_exports.array(SpecialOfferSchema));
5845
5881
  }
5846
5882
  async getActive(ctx) {
5847
- const { uri, method } = special_offer_exports.Endpoints.GetActive;
5883
+ const { uri, method } = Endpoints7.GetActive;
5848
5884
  return this.clientHTTP.makeRequest(this.env, uri, method, null, ctx, SpecialOfferSchema.nullable());
5849
5885
  }
5850
5886
  async create(ctx, data) {
5851
- const { uri, method } = special_offer_exports.Endpoints.Create;
5887
+ const { uri, method } = Endpoints7.Create;
5852
5888
  return this.clientHTTP.makeRequest(this.env, uri, method, data, ctx, SpecialOfferSchema);
5853
5889
  }
5854
5890
  async update(ctx, id, data) {
5855
- const { uri, method } = special_offer_exports.Endpoints.Update;
5891
+ const { uri, method } = Endpoints7.Update;
5856
5892
  await this.clientHTTP.makeRequest(this.env, uri.replace(":id", id), method, data, ctx);
5857
5893
  }
5858
5894
  async enable(ctx, id) {
5859
- const { uri, method } = special_offer_exports.Endpoints.Enable;
5895
+ const { uri, method } = Endpoints7.Enable;
5860
5896
  await this.clientHTTP.makeRequest(this.env, uri.replace(":id", id), method, null, ctx);
5861
5897
  }
5862
5898
  async disable(ctx, id) {
5863
- const { uri, method } = special_offer_exports.Endpoints.Disable;
5899
+ const { uri, method } = Endpoints7.Disable;
5864
5900
  await this.clientHTTP.makeRequest(this.env, uri.replace(":id", id), method, null, ctx);
5865
5901
  }
5866
5902
  async getMyOffer(ctx) {
5867
- const { uri, method } = special_offer_exports.Endpoints.GetMyOffer;
5903
+ const { uri, method } = Endpoints7.GetMyOffer;
5868
5904
  return this.clientHTTP.makeRequest(this.env, uri, method, null, ctx, UserOfferDetailsSchema.nullable());
5869
5905
  }
5870
5906
  async claim(ctx, callbackUrl) {
5871
- const { uri, method } = special_offer_exports.Endpoints.Claim;
5907
+ const { uri, method } = Endpoints7.Claim;
5872
5908
  const data = await this.clientHTTP.makeRequest(this.env, uri, method, { callbackUrl }, ctx);
5873
5909
  return data.url;
5874
5910
  }
@@ -5908,7 +5944,7 @@ __export(exceptions_exports, {
5908
5944
  var prompt_exports = {};
5909
5945
  __export(prompt_exports, {
5910
5946
  CategorySchema: () => CategorySchema,
5911
- Endpoints: () => Endpoints7,
5947
+ Endpoints: () => Endpoints8,
5912
5948
  PromptSchema: () => PromptSchema,
5913
5949
  ScriptIARequestSchema: () => ScriptIARequestSchema,
5914
5950
  ScriptSchema: () => ScriptSchema
@@ -5944,7 +5980,7 @@ var PromptSchema = external_exports.object({
5944
5980
  });
5945
5981
 
5946
5982
  // src/model/prompt/Prompt.api.ts
5947
- var Endpoints7 = {
5983
+ var Endpoints8 = {
5948
5984
  GetPrompt: {
5949
5985
  uri: "/prompts/getPrompt",
5950
5986
  method: "GET"
@@ -5975,7 +6011,7 @@ var Endpoints7 = {
5975
6011
  var tenant_exports = {};
5976
6012
  __export(tenant_exports, {
5977
6013
  Action: () => Action,
5978
- Endpoints: () => Endpoints8,
6014
+ Endpoints: () => Endpoints9,
5979
6015
  MemberSchema: () => MemberSchema,
5980
6016
  PreferencesSchema: () => PreferencesSchema,
5981
6017
  ReportViewerUpdateSchema: () => ReportViewerUpdateSchema,
@@ -6089,7 +6125,7 @@ var ReportViewerUpdateSchema = external_exports.object({
6089
6125
  });
6090
6126
 
6091
6127
  // src/model/tenant/Tenant.api.ts
6092
- var Endpoints8 = {
6128
+ var Endpoints9 = {
6093
6129
  GetByInviteCode: {
6094
6130
  uri: "/tenants/public/invitation/",
6095
6131
  method: "GET"
@@ -6127,7 +6163,7 @@ var Endpoints8 = {
6127
6163
  // src/model/user/index.ts
6128
6164
  var user_exports = {};
6129
6165
  __export(user_exports, {
6130
- Endpoints: () => Endpoints9,
6166
+ Endpoints: () => Endpoints10,
6131
6167
  PreferencesSchema: () => PreferencesSchema2,
6132
6168
  Role: () => Role,
6133
6169
  System: () => System,
@@ -6182,7 +6218,7 @@ var UserSchema = external_exports.object({
6182
6218
  });
6183
6219
 
6184
6220
  // src/model/user/User.api.ts
6185
- var Endpoints9 = {
6221
+ var Endpoints10 = {
6186
6222
  ChangeEmail: { uri: "/accounts/user/changeEmail", method: "PUT" },
6187
6223
  GetUserInfo: { uri: "/accounts/user/info", method: "GET" },
6188
6224
  GetBindedUsers: { uri: "/accounts/binded/list", method: "GET" },
@@ -6205,7 +6241,7 @@ var Endpoints9 = {
6205
6241
  var subscription_exports = {};
6206
6242
  __export(subscription_exports, {
6207
6243
  ChargeSchema: () => ChargeSchema,
6208
- Endpoints: () => Endpoints10,
6244
+ Endpoints: () => Endpoints11,
6209
6245
  PlanSchema: () => PlanSchema,
6210
6246
  ProductSchema: () => ProductSchema,
6211
6247
  SubscriptionSchema: () => SubscriptionSchema,
@@ -6214,7 +6250,7 @@ __export(subscription_exports, {
6214
6250
  });
6215
6251
 
6216
6252
  // src/model/subscription/Subscription.api.ts
6217
- var Endpoints10 = {
6253
+ var Endpoints11 = {
6218
6254
  GetPortal: {
6219
6255
  uri: "/subscriptions/portal/",
6220
6256
  method: "GET"
@@ -6272,7 +6308,7 @@ var Endpoints10 = {
6272
6308
  // src/model/track/index.ts
6273
6309
  var track_exports = {};
6274
6310
  __export(track_exports, {
6275
- Endpoints: () => Endpoints11,
6311
+ Endpoints: () => Endpoints12,
6276
6312
  TrackParamSchema: () => TrackParamSchema,
6277
6313
  TrackSchema: () => TrackSchema
6278
6314
  });
@@ -6290,7 +6326,7 @@ var TrackSchema = external_exports.object({
6290
6326
  });
6291
6327
 
6292
6328
  // src/model/track/Track.api.ts
6293
- var Endpoints11 = {
6329
+ var Endpoints12 = {
6294
6330
  Track: {
6295
6331
  uri: "/track/public/send/",
6296
6332
  method: "POST"
@@ -6304,48 +6340,12 @@ var core_exports = {};
6304
6340
  var special_offer_exports = {};
6305
6341
  __export(special_offer_exports, {
6306
6342
  CreateSpecialOfferSchema: () => CreateSpecialOfferSchema,
6307
- Endpoints: () => Endpoints12,
6343
+ Endpoints: () => Endpoints7,
6308
6344
  SpecialOfferSchema: () => SpecialOfferSchema,
6309
6345
  UpdateSpecialOfferSchema: () => UpdateSpecialOfferSchema,
6310
6346
  UserOfferDetailsSchema: () => UserOfferDetailsSchema
6311
6347
  });
6312
6348
 
6313
- // src/model/special-offer/SpecialOffer.api.ts
6314
- var Endpoints12 = {
6315
- List: {
6316
- uri: "/special-offers/",
6317
- method: "GET"
6318
- },
6319
- GetActive: {
6320
- uri: "/special-offers/active",
6321
- method: "GET"
6322
- },
6323
- Create: {
6324
- uri: "/special-offers/",
6325
- method: "POST"
6326
- },
6327
- Update: {
6328
- uri: "/special-offers/:id",
6329
- method: "PUT"
6330
- },
6331
- Enable: {
6332
- uri: "/special-offers/:id/enable",
6333
- method: "PUT"
6334
- },
6335
- Disable: {
6336
- uri: "/special-offers/:id/disable",
6337
- method: "PUT"
6338
- },
6339
- GetMyOffer: {
6340
- uri: "/special-offers/my-offer",
6341
- method: "GET"
6342
- },
6343
- Claim: {
6344
- uri: "/special-offers/claim",
6345
- method: "POST"
6346
- }
6347
- };
6348
-
6349
6349
  // src/index.ts
6350
6350
  var index_default = ShredAPI;
6351
6351
  //# sourceMappingURL=index.js.map