@salable/sdk 1.0.4 → 1.0.6

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.
Files changed (35) hide show
  1. package/dist/index.es.js +71 -0
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.js +71 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/sdk/api/ai/conversations/index.d.ts +3 -0
  6. package/dist/sdk/api/ai/messages/index.d.ts +3 -0
  7. package/dist/sdk/api/apiKeys/index.d.ts +3 -0
  8. package/dist/sdk/api/carts/index.d.ts +6 -0
  9. package/dist/sdk/api/currencyOptions/index.d.ts +3 -0
  10. package/dist/sdk/api/destinations/index.d.ts +3 -0
  11. package/dist/sdk/api/entitlements/index.d.ts +3 -0
  12. package/dist/sdk/api/eventAttempts/index.d.ts +3 -0
  13. package/dist/sdk/api/events/index.d.ts +3 -0
  14. package/dist/sdk/api/grantees/index.d.ts +3 -0
  15. package/dist/sdk/api/groups/index.d.ts +3 -0
  16. package/dist/sdk/api/lineItems/index.d.ts +3 -0
  17. package/dist/sdk/api/meters/index.d.ts +3 -0
  18. package/dist/sdk/api/owners/index.d.ts +3 -0
  19. package/dist/sdk/api/paymentIntegrations/index.d.ts +3 -0
  20. package/dist/sdk/api/plans/index.d.ts +3 -0
  21. package/dist/sdk/api/prices/index.d.ts +3 -0
  22. package/dist/sdk/api/products/copyToLiveMode/index.d.ts +35 -0
  23. package/dist/sdk/api/products/exportEscaped/item/index.d.ts +2 -2
  24. package/dist/sdk/api/products/importEscaped/index.d.ts +2 -2
  25. package/dist/sdk/api/products/index.d.ts +28 -5
  26. package/dist/sdk/api/products/item/archive/index.d.ts +2 -2
  27. package/dist/sdk/api/products/item/index.d.ts +10 -7
  28. package/dist/sdk/api/receipts/index.d.ts +3 -0
  29. package/dist/sdk/api/subscriptionPlans/index.d.ts +3 -0
  30. package/dist/sdk/api/subscriptions/index.d.ts +3 -0
  31. package/dist/sdk/api/tierTags/index.d.ts +3 -0
  32. package/dist/sdk/api/tiers/index.d.ts +3 -0
  33. package/dist/sdk/api/usageRecords/index.d.ts +3 -0
  34. package/dist/sdk/models/index.d.ts +106 -12
  35. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -6294,6 +6294,15 @@ function createCheckEntitlementsSchema_dataFromDiscriminatorValue(parseNode) {
6294
6294
  function createCheckEntitlementsSchemaFromDiscriminatorValue(parseNode) {
6295
6295
  return deserializeIntoCheckEntitlementsSchema;
6296
6296
  }
6297
+ /**
6298
+ * Creates a new instance of the appropriate class based on discriminator value
6299
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6300
+ * @returns {CopyToLiveModeSchema}
6301
+ */
6302
+ // @ts-ignore
6303
+ function createCopyToLiveModeSchemaFromDiscriminatorValue(parseNode) {
6304
+ return deserializeIntoCopyToLiveModeSchema;
6305
+ }
6297
6306
  /**
6298
6307
  * Creates a new instance of the appropriate class based on discriminator value
6299
6308
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -9264,6 +9273,17 @@ function deserializeIntoCheckEntitlementsSchema_data_entitlements(checkEntitleme
9264
9273
  "value": n => { checkEntitlementsSchema_data_entitlements.value = n.getStringValue(); },
9265
9274
  };
9266
9275
  }
9276
+ /**
9277
+ * The deserialization information for the current model
9278
+ * @param CopyToLiveModeSchema The instance to deserialize into.
9279
+ * @returns {Record<string, (node: ParseNode) => void>}
9280
+ */
9281
+ // @ts-ignore
9282
+ function deserializeIntoCopyToLiveModeSchema(copyToLiveModeSchema = {}) {
9283
+ return {
9284
+ "id": n => { copyToLiveModeSchema.id = n.getStringValue(); },
9285
+ };
9286
+ }
9267
9287
  /**
9268
9288
  * The deserialization information for the current model
9269
9289
  * @param CreateAccountSessionResponseSchema The instance to deserialize into.
@@ -9669,6 +9689,7 @@ function deserializeIntoGetAIConversationDetailSchema_data_messages_data(getAICo
9669
9689
  "id": n => { getAIConversationDetailSchema_data_messages_data.id = n.getStringValue(); },
9670
9690
  "organisation": n => { getAIConversationDetailSchema_data_messages_data.organisation = n.getStringValue(); },
9671
9691
  "role": n => { getAIConversationDetailSchema_data_messages_data.role = n.getStringValue(); },
9692
+ "status": n => { getAIConversationDetailSchema_data_messages_data.status = n.getStringValue(); },
9672
9693
  };
9673
9694
  }
9674
9695
  /**
@@ -9878,6 +9899,7 @@ function deserializeIntoGetAiMessageListSchema_data(getAiMessageListSchema_data
9878
9899
  "id": n => { getAiMessageListSchema_data.id = n.getStringValue(); },
9879
9900
  "organisation": n => { getAiMessageListSchema_data.organisation = n.getStringValue(); },
9880
9901
  "role": n => { getAiMessageListSchema_data.role = n.getStringValue(); },
9902
+ "status": n => { getAiMessageListSchema_data.status = n.getStringValue(); },
9881
9903
  };
9882
9904
  }
9883
9905
  /**
@@ -14488,6 +14510,19 @@ function serializeBatchSubscriptionActionsRequestSchema(writer, batchSubscriptio
14488
14510
  writer.writeEnumValue("action", batchSubscriptionActionsRequestSchema.action);
14489
14511
  writer.writeCollectionOfPrimitiveValues("subscriptionIds", batchSubscriptionActionsRequestSchema.subscriptionIds);
14490
14512
  }
14513
+ /**
14514
+ * Serializes information the current object
14515
+ * @param CopyProductToLiveModeRequestSchema The instance to serialize from.
14516
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
14517
+ * @param writer Serialization writer to use to serialize this model
14518
+ */
14519
+ // @ts-ignore
14520
+ function serializeCopyProductToLiveModeRequestSchema(writer, copyProductToLiveModeRequestSchema = {}, isSerializingDerivedType = false) {
14521
+ if (!copyProductToLiveModeRequestSchema || isSerializingDerivedType) {
14522
+ return;
14523
+ }
14524
+ writer.writeStringValue("id", copyProductToLiveModeRequestSchema.id);
14525
+ }
14491
14526
  /**
14492
14527
  * Serializes information the current object
14493
14528
  * @param CreateCartItemRequestSchema The instance to serialize from.
@@ -17338,6 +17373,39 @@ const PricesRequestBuilderRequestsMetadata = {
17338
17373
  /* tslint:enable */
17339
17374
  /* eslint-enable */
17340
17375
 
17376
+ /* tslint:disable */
17377
+ /* eslint-disable */
17378
+ // Generated by Microsoft Kiota
17379
+ // @ts-ignore
17380
+ /**
17381
+ * Uri template for the request builder.
17382
+ */
17383
+ const CopyToLiveModeRequestBuilderUriTemplate = "{+baseurl}/api/products/copy-to-live-mode";
17384
+ /**
17385
+ * Metadata for all the requests in the request builder.
17386
+ */
17387
+ const CopyToLiveModeRequestBuilderRequestsMetadata = {
17388
+ post: {
17389
+ uriTemplate: CopyToLiveModeRequestBuilderUriTemplate,
17390
+ responseBodyContentType: "application/json",
17391
+ errorMappings: {
17392
+ 400: createErrorResponseBodyFromDiscriminatorValue,
17393
+ 401: createErrorResponseBodyFromDiscriminatorValue,
17394
+ 403: createErrorResponseBodyFromDiscriminatorValue,
17395
+ 404: createErrorResponseBodyFromDiscriminatorValue,
17396
+ 405: createErrorResponseBodyFromDiscriminatorValue,
17397
+ 500: createErrorResponseBodyFromDiscriminatorValue,
17398
+ },
17399
+ adapterMethodName: "send",
17400
+ responseBodyFactory: createCopyToLiveModeSchemaFromDiscriminatorValue,
17401
+ requestBodyContentType: "application/json",
17402
+ requestBodySerializer: serializeCopyProductToLiveModeRequestSchema,
17403
+ requestInformationContentSetMethod: "setContentFromParsable",
17404
+ },
17405
+ };
17406
+ /* tslint:enable */
17407
+ /* eslint-enable */
17408
+
17341
17409
  /* tslint:disable */
17342
17410
  /* eslint-disable */
17343
17411
  // Generated by Microsoft Kiota
@@ -17530,6 +17598,9 @@ const ProductsRequestBuilderNavigationMetadata = {
17530
17598
  navigationMetadata: ProductsItemRequestBuilderNavigationMetadata,
17531
17599
  pathParametersMappings: ["id"],
17532
17600
  },
17601
+ copyToLiveMode: {
17602
+ requestsMetadata: CopyToLiveModeRequestBuilderRequestsMetadata,
17603
+ },
17533
17604
  exportEscaped: {
17534
17605
  navigationMetadata: ExportRequestBuilderNavigationMetadata,
17535
17606
  },