@marteye/studiojs 1.1.15 → 1.1.16

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 CHANGED
@@ -4,7 +4,7 @@ declare const videoTaskSchema: z.ZodEnum<["compressed", "thumbnail"]>;
4
4
  declare const imageSizeSchema: z.ZodEnum<["small", "medium", "large"]>;
5
5
  type ImageSize = z.infer<typeof imageSizeSchema>;
6
6
  type VideoTask = z.infer<typeof videoTaskSchema>;
7
- type SupportedFileTypesNames = "image" | "video" | "file";
7
+ type SupportedFileTypesNames$1 = "image" | "video" | "file";
8
8
  type VariantProcessingState = {
9
9
  fileName: string;
10
10
  thumbHash: string;
@@ -14,7 +14,7 @@ type VariantProcessingState = {
14
14
  variants: Partial<Record<ImageSize | VideoTask, {
15
15
  url: string;
16
16
  isProcessing: boolean;
17
- type: SupportedFileTypesNames;
17
+ type: SupportedFileTypesNames$1;
18
18
  }>>;
19
19
  };
20
20
  /**
@@ -648,21 +648,22 @@ interface Address {
648
648
  zip: string;
649
649
  country: string;
650
650
  }
651
- interface ImageThumbnail {
652
- url: string;
653
- width: number;
654
- height: number;
655
- }
651
+ declare const IMAGE_SIZES_VALUES: readonly ["small", "medium", "large"];
652
+ declare const VIDEO_TASKS_VALUES: readonly ["compressed", "thumbnail"];
653
+ type ImageSizes = (typeof IMAGE_SIZES_VALUES)[number];
654
+ type VideoTasks = (typeof VIDEO_TASKS_VALUES)[number];
655
+ type SupportedFileTypesNames = "image" | "video" | "file";
656
656
  interface Media {
657
- id: string;
657
+ fileName: string;
658
+ path: string;
658
659
  url: string;
659
- type: "image/jpeg" | "image/png" | "video/mp4" | "application/pdf";
660
- filename: string;
661
- thumbnails?: {
662
- small?: ImageThumbnail;
663
- medium?: ImageThumbnail;
664
- large?: ImageThumbnail;
665
- };
660
+ fileType: string;
661
+ variants: Partial<Record<ImageSizes | VideoTasks, {
662
+ url: string;
663
+ isLocal?: boolean;
664
+ isProcessing: boolean;
665
+ type: SupportedFileTypesNames;
666
+ }>>;
666
667
  }
667
668
  type MarketReportHeaders = "grossServices" | "vatOnServices" | "grossGoods" | "vatOnGoods" | "netTotal" | "contra";
668
669
  /**
@@ -1067,6 +1068,8 @@ type types_DraftInvoice = DraftInvoice;
1067
1068
  type types_EmailWrapper = EmailWrapper;
1068
1069
  type types_FarmAssurances = FarmAssurances;
1069
1070
  type types_FieldPositions = FieldPositions;
1071
+ declare const types_IMAGE_SIZES_VALUES: typeof IMAGE_SIZES_VALUES;
1072
+ type types_ImageSizes = ImageSizes;
1070
1073
  type types_IncrementLadder = IncrementLadder;
1071
1074
  type types_IncrementLadderItem = IncrementLadderItem;
1072
1075
  type types_Invoice = Invoice;
@@ -1117,18 +1120,21 @@ type types_SuperType = SuperType;
1117
1120
  type types_SupportedAttributeTypes = SupportedAttributeTypes;
1118
1121
  type types_SupportedCountryCode = SupportedCountryCode;
1119
1122
  declare const types_SupportedCurrencyCodes: typeof SupportedCurrencyCodes;
1123
+ type types_SupportedFileTypesNames = SupportedFileTypesNames;
1120
1124
  declare const types_SupportedPaymentMethods: typeof SupportedPaymentMethods;
1121
1125
  declare const types_SupportedSuperTypes: typeof SupportedSuperTypes;
1122
1126
  declare const types_SupportedUnitsOfSale: typeof SupportedUnitsOfSale;
1123
1127
  type types_TablePosition = TablePosition;
1124
1128
  type types_TaxRate = TaxRate;
1125
1129
  type types_UnitOfSale = UnitOfSale;
1130
+ declare const types_VIDEO_TASKS_VALUES: typeof VIDEO_TASKS_VALUES;
1131
+ type types_VideoTasks = VideoTasks;
1126
1132
  type types_WebhookEvent<T> = WebhookEvent<T>;
1127
1133
  type types_WebhookEventName = WebhookEventName;
1128
1134
  declare const types_supportedWebhookEvents: typeof supportedWebhookEvents;
1129
1135
  declare namespace types {
1130
- export { types_LivestockSuperTypes as LivestockSuperTypes, types_SupportedCurrencyCodes as SupportedCurrencyCodes, types_SupportedPaymentMethods as SupportedPaymentMethods, types_SupportedSuperTypes as SupportedSuperTypes, types_SupportedUnitsOfSale as SupportedUnitsOfSale, types_supportedWebhookEvents as supportedWebhookEvents };
1131
- export type { types_Accessory as Accessory, types_Address as Address, types_AddressWrapper as AddressWrapper, types_AdjustmentTarget as AdjustmentTarget, types_AdjustmentTotalTarget as AdjustmentTotalTarget, types_AdjustmentsConfiguration as AdjustmentsConfiguration, types_AppParameterConfig as AppParameterConfig, types_AttributeDefinition as AttributeDefinition, types_AttributeValueType as AttributeValueType, types_BankDetails as BankDetails, types_Cart as Cart, types_CartItem as CartItem, types_ChequeField as ChequeField, types_ClientType as ClientType, types_CurrenciesWithGuinea as CurrenciesWithGuinea, types_Currency as Currency, types_Customer as Customer, types_CustomerFromSearch as CustomerFromSearch, types_DeviceType as DeviceType, types_DraftInvoice as DraftInvoice, types_EmailWrapper as EmailWrapper, types_FarmAssurances as FarmAssurances, types_FieldPositions as FieldPositions, types_IncrementLadder as IncrementLadder, types_IncrementLadderItem as IncrementLadderItem, types_Invoice as Invoice, types_InvoiceField as InvoiceField, types_InvoiceLineItem as InvoiceLineItem, types_InvoiceTotalAdjustmentConfiguration as InvoiceTotalAdjustmentConfiguration, types_InvoiceTotals as InvoiceTotals, types_LineItemAdjustmentConfiguration as LineItemAdjustmentConfiguration, types_Lot as Lot, types_LotGeneratedValues as LotGeneratedValues, types_LotIssue as LotIssue, types_LotItem as LotItem, types_LotSaleStatus as LotSaleStatus, types_LotWithItemsAsArray as LotWithItemsAsArray, types_Market as Market, types_MarketBankDetails as MarketBankDetails, types_MarketReportHeaders as MarketReportHeaders, types_MartEyeLiveSaleSettings as MartEyeLiveSaleSettings, types_MartEyeTimedSaleSettings as MartEyeTimedSaleSettings, types_Media as Media, types_MemberSharingConfiguration as MemberSharingConfiguration, types_ObjectType as ObjectType, types_Payment as Payment, types_PaymentMethod as PaymentMethod, types_Payout as Payout, types_PayoutMethod as PayoutMethod, types_PhoneNumberWrapper as PhoneNumberWrapper, types_Printer as Printer, types_Product as Product, types_ProductCodeConfiguration as ProductCodeConfiguration, types_ProductConfiguration as ProductConfiguration, types_Sale as Sale, types_SaleFromSearch as SaleFromSearch, types_SettingsAccessories as SettingsAccessories, types_SettingsAdjustmentsConfiguration as SettingsAdjustmentsConfiguration, types_SettingsGlobalAttributes as SettingsGlobalAttributes, types_SettingsMarketDefaults as SettingsMarketDefaults, types_SettingsPrinters as SettingsPrinters, types_SettingsProductCodes as SettingsProductCodes, types_SettingsTaxRates as SettingsTaxRates, types_ShortCustomerDetails as ShortCustomerDetails, types_SimplePaymentIn as SimplePaymentIn, types_SimplePaymentOut as SimplePaymentOut, types_StudioAppPartial as StudioAppPartial, types_SubtotalGroups as SubtotalGroups, types_SuperType as SuperType, types_SupportedAttributeTypes as SupportedAttributeTypes, types_SupportedCountryCode as SupportedCountryCode, types_TablePosition as TablePosition, types_TaxRate as TaxRate, types_UnitOfSale as UnitOfSale, types_WebhookEvent as WebhookEvent, types_WebhookEventName as WebhookEventName };
1136
+ export { types_IMAGE_SIZES_VALUES as IMAGE_SIZES_VALUES, types_LivestockSuperTypes as LivestockSuperTypes, types_SupportedCurrencyCodes as SupportedCurrencyCodes, types_SupportedPaymentMethods as SupportedPaymentMethods, types_SupportedSuperTypes as SupportedSuperTypes, types_SupportedUnitsOfSale as SupportedUnitsOfSale, types_VIDEO_TASKS_VALUES as VIDEO_TASKS_VALUES, types_supportedWebhookEvents as supportedWebhookEvents };
1137
+ export type { types_Accessory as Accessory, types_Address as Address, types_AddressWrapper as AddressWrapper, types_AdjustmentTarget as AdjustmentTarget, types_AdjustmentTotalTarget as AdjustmentTotalTarget, types_AdjustmentsConfiguration as AdjustmentsConfiguration, types_AppParameterConfig as AppParameterConfig, types_AttributeDefinition as AttributeDefinition, types_AttributeValueType as AttributeValueType, types_BankDetails as BankDetails, types_Cart as Cart, types_CartItem as CartItem, types_ChequeField as ChequeField, types_ClientType as ClientType, types_CurrenciesWithGuinea as CurrenciesWithGuinea, types_Currency as Currency, types_Customer as Customer, types_CustomerFromSearch as CustomerFromSearch, types_DeviceType as DeviceType, types_DraftInvoice as DraftInvoice, types_EmailWrapper as EmailWrapper, types_FarmAssurances as FarmAssurances, types_FieldPositions as FieldPositions, types_ImageSizes as ImageSizes, types_IncrementLadder as IncrementLadder, types_IncrementLadderItem as IncrementLadderItem, types_Invoice as Invoice, types_InvoiceField as InvoiceField, types_InvoiceLineItem as InvoiceLineItem, types_InvoiceTotalAdjustmentConfiguration as InvoiceTotalAdjustmentConfiguration, types_InvoiceTotals as InvoiceTotals, types_LineItemAdjustmentConfiguration as LineItemAdjustmentConfiguration, types_Lot as Lot, types_LotGeneratedValues as LotGeneratedValues, types_LotIssue as LotIssue, types_LotItem as LotItem, types_LotSaleStatus as LotSaleStatus, types_LotWithItemsAsArray as LotWithItemsAsArray, types_Market as Market, types_MarketBankDetails as MarketBankDetails, types_MarketReportHeaders as MarketReportHeaders, types_MartEyeLiveSaleSettings as MartEyeLiveSaleSettings, types_MartEyeTimedSaleSettings as MartEyeTimedSaleSettings, types_Media as Media, types_MemberSharingConfiguration as MemberSharingConfiguration, types_ObjectType as ObjectType, types_Payment as Payment, types_PaymentMethod as PaymentMethod, types_Payout as Payout, types_PayoutMethod as PayoutMethod, types_PhoneNumberWrapper as PhoneNumberWrapper, types_Printer as Printer, types_Product as Product, types_ProductCodeConfiguration as ProductCodeConfiguration, types_ProductConfiguration as ProductConfiguration, types_Sale as Sale, types_SaleFromSearch as SaleFromSearch, types_SettingsAccessories as SettingsAccessories, types_SettingsAdjustmentsConfiguration as SettingsAdjustmentsConfiguration, types_SettingsGlobalAttributes as SettingsGlobalAttributes, types_SettingsMarketDefaults as SettingsMarketDefaults, types_SettingsPrinters as SettingsPrinters, types_SettingsProductCodes as SettingsProductCodes, types_SettingsTaxRates as SettingsTaxRates, types_ShortCustomerDetails as ShortCustomerDetails, types_SimplePaymentIn as SimplePaymentIn, types_SimplePaymentOut as SimplePaymentOut, types_StudioAppPartial as StudioAppPartial, types_SubtotalGroups as SubtotalGroups, types_SuperType as SuperType, types_SupportedAttributeTypes as SupportedAttributeTypes, types_SupportedCountryCode as SupportedCountryCode, types_SupportedFileTypesNames as SupportedFileTypesNames, types_TablePosition as TablePosition, types_TaxRate as TaxRate, types_UnitOfSale as UnitOfSale, types_VideoTasks as VideoTasks, types_WebhookEvent as WebhookEvent, types_WebhookEventName as WebhookEventName };
1132
1138
  }
1133
1139
 
1134
1140
  interface CreateCustomerPayload {
package/dist/index.esm.js CHANGED
@@ -4554,10 +4554,10 @@ z.object({
4554
4554
  suffix: z.string().min(1, { message: "Suffix Type is required" }),
4555
4555
  });
4556
4556
  // Adding Sizes here will make more end points in the mainConfig object
4557
- const IMAGE_SIZES_VALUES = ["small", "medium", "large"];
4558
- const VIDEO_TASKS_VALUES = ["compressed", "thumbnail"];
4559
- z.enum(VIDEO_TASKS_VALUES);
4560
- z.enum(IMAGE_SIZES_VALUES);
4557
+ const IMAGE_SIZES_VALUES$1 = ["small", "medium", "large"];
4558
+ const VIDEO_TASKS_VALUES$1 = ["compressed", "thumbnail"];
4559
+ z.enum(VIDEO_TASKS_VALUES$1);
4560
+ z.enum(IMAGE_SIZES_VALUES$1);
4561
4561
  const UPLOAD_PATHS = {
4562
4562
  START_UPLOAD: "startMultipartUpload",
4563
4563
  UPLOAD_PART: "uploadChunk",
@@ -5108,6 +5108,8 @@ const SupportedPaymentMethods = [
5108
5108
  "Card",
5109
5109
  "Credit",
5110
5110
  ];
5111
+ const IMAGE_SIZES_VALUES = ["small", "medium", "large"];
5112
+ const VIDEO_TASKS_VALUES = ["compressed", "thumbnail"];
5111
5113
  const supportedWebhookEvents = [
5112
5114
  "market.updated",
5113
5115
  "sale.created",
@@ -5139,11 +5141,13 @@ const supportedWebhookEvents = [
5139
5141
 
5140
5142
  var types = /*#__PURE__*/Object.freeze({
5141
5143
  __proto__: null,
5144
+ IMAGE_SIZES_VALUES: IMAGE_SIZES_VALUES,
5142
5145
  LivestockSuperTypes: LivestockSuperTypes,
5143
5146
  SupportedCurrencyCodes: SupportedCurrencyCodes,
5144
5147
  SupportedPaymentMethods: SupportedPaymentMethods,
5145
5148
  SupportedSuperTypes: SupportedSuperTypes,
5146
5149
  SupportedUnitsOfSale: SupportedUnitsOfSale,
5150
+ VIDEO_TASKS_VALUES: VIDEO_TASKS_VALUES,
5147
5151
  supportedWebhookEvents: supportedWebhookEvents
5148
5152
  });
5149
5153