@marmot-systems/common 2.0.47 → 2.0.49

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.cts CHANGED
@@ -547,6 +547,7 @@ type ServerSyncLogIds = {
547
547
  driver_customer_ids: number[];
548
548
  driver_setting_ids: number[];
549
549
  };
550
+ type ServerSyncIds = Pick<ServerSyncLogIds, "invoice_ids" | "invoice_item_ids" | "credit_application_ids" | "payment_ids">;
550
551
 
551
552
  declare const exceedsTwoDecimals: (raw: string) => boolean;
552
553
 
@@ -559,7 +560,7 @@ declare function ymdFromLocalDate(dt: Date): string;
559
560
  type RHFError = string | FieldError | Merge<FieldError, FieldErrorsImpl<any>> | undefined;
560
561
  declare const getErrorMessage: (err: RHFError) => string | undefined;
561
562
 
562
- type EntityType = "customers" | "vendors" | "products" | "invoices" | "credit_applications" | "warehouses" | "inventory_locations" | "payments";
563
+ type EntityType = "companies" | "users" | "customers" | "vendors" | "products" | "invoices" | "credit_applications" | "warehouses" | "inventory_locations" | "payments";
563
564
  type EntityAction = "create" | "update" | "void";
564
565
  type AuditEventsSnapshot = {
565
566
  audit_id: UUID;
@@ -572,4 +573,4 @@ type AuditEventsSnapshot = {
572
573
  company_id: number;
573
574
  };
574
575
 
575
- export { type AnyInvoiceOut, AnyInvoiceSchema, type AuditEventsSnapshot, CREDIT_TYPE, type CreatedLocation, CreditApplicationSchema, type CreditApplicationSnapshot, type CreditApplicationStatus, type CreditInvoice, CreditInvoiceSchema, type CreditType, CustomerFormSchema, type CustomerSnapshot, type DriverCustomerSnapshot, type DriverSettingSnapshot, type EntityAction, type EntityType, INVOICE_STATUS, INVOICE_TYPE, ISO_COUNTRY_CODES, type InventoryBalanceSnapshot, type InventoryLocationSnapshot, type InventorySystem, type InvoiceFilter, type InvoiceItemSnapshot, type InvoiceItemStatus, type InvoiceSnapshot, type InvoiceSnapshotMobile, type InvoiceStatus, type InvoiceType, type IsoCountryCode, type IsoCurrencyCode, type MappedCustomers, type MappedVendors, PAYMENT_METHOD, type PaymentFilter, PaymentFormSchema, type PaymentMethod, type PaymentSnapshot, type PaymentStatus, ProductFormSchema, type ProductSnapshot, type ProductType, type PurchaseInvoice, PurchaseInvoiceSchema, RegisterFormSchema, type SalesInvoice, SalesInvoiceSchema, type ServerSyncLogIds, USER_ROLES, type UUID, type UserRole, type WarehouseSnapshot, type WeightUnit, addDaysLocalYmd, countryToCurrency, currencyToLocale, exceedsTwoDecimals, formatMoneyCurrency, formatYmdLong, getCurrencyFromCountry, getErrorMessage, handleZodCurrency, localDateFromYmd, normalizeSpaces, removeAllWhitespace, removeDashesAndPlusSign, roundWithPrecision, todayLocalYmd, transformEmptyStringToUndefined, ymdFromLocalDate };
576
+ export { type AnyInvoiceOut, AnyInvoiceSchema, type AuditEventsSnapshot, CREDIT_TYPE, type CreatedLocation, CreditApplicationSchema, type CreditApplicationSnapshot, type CreditApplicationStatus, type CreditInvoice, CreditInvoiceSchema, type CreditType, CustomerFormSchema, type CustomerSnapshot, type DriverCustomerSnapshot, type DriverSettingSnapshot, type EntityAction, type EntityType, INVOICE_STATUS, INVOICE_TYPE, ISO_COUNTRY_CODES, type InventoryBalanceSnapshot, type InventoryLocationSnapshot, type InventorySystem, type InvoiceFilter, type InvoiceItemSnapshot, type InvoiceItemStatus, type InvoiceSnapshot, type InvoiceSnapshotMobile, type InvoiceStatus, type InvoiceType, type IsoCountryCode, type IsoCurrencyCode, type MappedCustomers, type MappedVendors, PAYMENT_METHOD, type PaymentFilter, PaymentFormSchema, type PaymentMethod, type PaymentSnapshot, type PaymentStatus, ProductFormSchema, type ProductSnapshot, type ProductType, type PurchaseInvoice, PurchaseInvoiceSchema, RegisterFormSchema, type SalesInvoice, SalesInvoiceSchema, type ServerSyncIds, type ServerSyncLogIds, USER_ROLES, type UUID, type UserRole, type WarehouseSnapshot, type WeightUnit, addDaysLocalYmd, countryToCurrency, currencyToLocale, exceedsTwoDecimals, formatMoneyCurrency, formatYmdLong, getCurrencyFromCountry, getErrorMessage, handleZodCurrency, localDateFromYmd, normalizeSpaces, removeAllWhitespace, removeDashesAndPlusSign, roundWithPrecision, todayLocalYmd, transformEmptyStringToUndefined, ymdFromLocalDate };
package/dist/index.d.ts CHANGED
@@ -547,6 +547,7 @@ type ServerSyncLogIds = {
547
547
  driver_customer_ids: number[];
548
548
  driver_setting_ids: number[];
549
549
  };
550
+ type ServerSyncIds = Pick<ServerSyncLogIds, "invoice_ids" | "invoice_item_ids" | "credit_application_ids" | "payment_ids">;
550
551
 
551
552
  declare const exceedsTwoDecimals: (raw: string) => boolean;
552
553
 
@@ -559,7 +560,7 @@ declare function ymdFromLocalDate(dt: Date): string;
559
560
  type RHFError = string | FieldError | Merge<FieldError, FieldErrorsImpl<any>> | undefined;
560
561
  declare const getErrorMessage: (err: RHFError) => string | undefined;
561
562
 
562
- type EntityType = "customers" | "vendors" | "products" | "invoices" | "credit_applications" | "warehouses" | "inventory_locations" | "payments";
563
+ type EntityType = "companies" | "users" | "customers" | "vendors" | "products" | "invoices" | "credit_applications" | "warehouses" | "inventory_locations" | "payments";
563
564
  type EntityAction = "create" | "update" | "void";
564
565
  type AuditEventsSnapshot = {
565
566
  audit_id: UUID;
@@ -572,4 +573,4 @@ type AuditEventsSnapshot = {
572
573
  company_id: number;
573
574
  };
574
575
 
575
- export { type AnyInvoiceOut, AnyInvoiceSchema, type AuditEventsSnapshot, CREDIT_TYPE, type CreatedLocation, CreditApplicationSchema, type CreditApplicationSnapshot, type CreditApplicationStatus, type CreditInvoice, CreditInvoiceSchema, type CreditType, CustomerFormSchema, type CustomerSnapshot, type DriverCustomerSnapshot, type DriverSettingSnapshot, type EntityAction, type EntityType, INVOICE_STATUS, INVOICE_TYPE, ISO_COUNTRY_CODES, type InventoryBalanceSnapshot, type InventoryLocationSnapshot, type InventorySystem, type InvoiceFilter, type InvoiceItemSnapshot, type InvoiceItemStatus, type InvoiceSnapshot, type InvoiceSnapshotMobile, type InvoiceStatus, type InvoiceType, type IsoCountryCode, type IsoCurrencyCode, type MappedCustomers, type MappedVendors, PAYMENT_METHOD, type PaymentFilter, PaymentFormSchema, type PaymentMethod, type PaymentSnapshot, type PaymentStatus, ProductFormSchema, type ProductSnapshot, type ProductType, type PurchaseInvoice, PurchaseInvoiceSchema, RegisterFormSchema, type SalesInvoice, SalesInvoiceSchema, type ServerSyncLogIds, USER_ROLES, type UUID, type UserRole, type WarehouseSnapshot, type WeightUnit, addDaysLocalYmd, countryToCurrency, currencyToLocale, exceedsTwoDecimals, formatMoneyCurrency, formatYmdLong, getCurrencyFromCountry, getErrorMessage, handleZodCurrency, localDateFromYmd, normalizeSpaces, removeAllWhitespace, removeDashesAndPlusSign, roundWithPrecision, todayLocalYmd, transformEmptyStringToUndefined, ymdFromLocalDate };
576
+ export { type AnyInvoiceOut, AnyInvoiceSchema, type AuditEventsSnapshot, CREDIT_TYPE, type CreatedLocation, CreditApplicationSchema, type CreditApplicationSnapshot, type CreditApplicationStatus, type CreditInvoice, CreditInvoiceSchema, type CreditType, CustomerFormSchema, type CustomerSnapshot, type DriverCustomerSnapshot, type DriverSettingSnapshot, type EntityAction, type EntityType, INVOICE_STATUS, INVOICE_TYPE, ISO_COUNTRY_CODES, type InventoryBalanceSnapshot, type InventoryLocationSnapshot, type InventorySystem, type InvoiceFilter, type InvoiceItemSnapshot, type InvoiceItemStatus, type InvoiceSnapshot, type InvoiceSnapshotMobile, type InvoiceStatus, type InvoiceType, type IsoCountryCode, type IsoCurrencyCode, type MappedCustomers, type MappedVendors, PAYMENT_METHOD, type PaymentFilter, PaymentFormSchema, type PaymentMethod, type PaymentSnapshot, type PaymentStatus, ProductFormSchema, type ProductSnapshot, type ProductType, type PurchaseInvoice, PurchaseInvoiceSchema, RegisterFormSchema, type SalesInvoice, SalesInvoiceSchema, type ServerSyncIds, type ServerSyncLogIds, USER_ROLES, type UUID, type UserRole, type WarehouseSnapshot, type WeightUnit, addDaysLocalYmd, countryToCurrency, currencyToLocale, exceedsTwoDecimals, formatMoneyCurrency, formatYmdLong, getCurrencyFromCountry, getErrorMessage, handleZodCurrency, localDateFromYmd, normalizeSpaces, removeAllWhitespace, removeDashesAndPlusSign, roundWithPrecision, todayLocalYmd, transformEmptyStringToUndefined, ymdFromLocalDate };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marmot-systems/common",
3
- "version": "2.0.47",
3
+ "version": "2.0.49",
4
4
  "description": "Schemas and utils shared across Marmot apps",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",