@marteye/studiojs 1.1.15 → 1.1.17
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 +23 -16
- package/dist/index.esm.js +8 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +14 -12
- package/package.json +1 -1
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,23 @@ interface Address {
|
|
|
648
648
|
zip: string;
|
|
649
649
|
country: string;
|
|
650
650
|
}
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
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
657
|
id: string;
|
|
658
|
+
fileName: string;
|
|
659
|
+
path: string;
|
|
658
660
|
url: string;
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
}
|
|
661
|
+
fileType: string;
|
|
662
|
+
variants: Partial<Record<ImageSizes | VideoTasks, {
|
|
663
|
+
url: string;
|
|
664
|
+
isLocal?: boolean;
|
|
665
|
+
isProcessing: boolean;
|
|
666
|
+
type: SupportedFileTypesNames;
|
|
667
|
+
}>>;
|
|
666
668
|
}
|
|
667
669
|
type MarketReportHeaders = "grossServices" | "vatOnServices" | "grossGoods" | "vatOnGoods" | "netTotal" | "contra";
|
|
668
670
|
/**
|
|
@@ -1067,6 +1069,8 @@ type types_DraftInvoice = DraftInvoice;
|
|
|
1067
1069
|
type types_EmailWrapper = EmailWrapper;
|
|
1068
1070
|
type types_FarmAssurances = FarmAssurances;
|
|
1069
1071
|
type types_FieldPositions = FieldPositions;
|
|
1072
|
+
declare const types_IMAGE_SIZES_VALUES: typeof IMAGE_SIZES_VALUES;
|
|
1073
|
+
type types_ImageSizes = ImageSizes;
|
|
1070
1074
|
type types_IncrementLadder = IncrementLadder;
|
|
1071
1075
|
type types_IncrementLadderItem = IncrementLadderItem;
|
|
1072
1076
|
type types_Invoice = Invoice;
|
|
@@ -1117,18 +1121,21 @@ type types_SuperType = SuperType;
|
|
|
1117
1121
|
type types_SupportedAttributeTypes = SupportedAttributeTypes;
|
|
1118
1122
|
type types_SupportedCountryCode = SupportedCountryCode;
|
|
1119
1123
|
declare const types_SupportedCurrencyCodes: typeof SupportedCurrencyCodes;
|
|
1124
|
+
type types_SupportedFileTypesNames = SupportedFileTypesNames;
|
|
1120
1125
|
declare const types_SupportedPaymentMethods: typeof SupportedPaymentMethods;
|
|
1121
1126
|
declare const types_SupportedSuperTypes: typeof SupportedSuperTypes;
|
|
1122
1127
|
declare const types_SupportedUnitsOfSale: typeof SupportedUnitsOfSale;
|
|
1123
1128
|
type types_TablePosition = TablePosition;
|
|
1124
1129
|
type types_TaxRate = TaxRate;
|
|
1125
1130
|
type types_UnitOfSale = UnitOfSale;
|
|
1131
|
+
declare const types_VIDEO_TASKS_VALUES: typeof VIDEO_TASKS_VALUES;
|
|
1132
|
+
type types_VideoTasks = VideoTasks;
|
|
1126
1133
|
type types_WebhookEvent<T> = WebhookEvent<T>;
|
|
1127
1134
|
type types_WebhookEventName = WebhookEventName;
|
|
1128
1135
|
declare const types_supportedWebhookEvents: typeof supportedWebhookEvents;
|
|
1129
1136
|
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 };
|
|
1137
|
+
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 };
|
|
1138
|
+
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
1139
|
}
|
|
1133
1140
|
|
|
1134
1141
|
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
|
|