types-salon-management 1.0.59 → 1.0.61

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 (96) hide show
  1. package/dist/api/address.d.ts +22 -0
  2. package/dist/api/address.d.ts.map +1 -0
  3. package/dist/api/address.js +3 -0
  4. package/dist/api/address.js.map +1 -0
  5. package/dist/api/checkout-orders/checkout-order.constants.d.ts +33 -0
  6. package/dist/api/checkout-orders/checkout-order.constants.d.ts.map +1 -0
  7. package/dist/api/checkout-orders/checkout-order.constants.js +32 -0
  8. package/dist/api/checkout-orders/checkout-order.constants.js.map +1 -0
  9. package/dist/api/checkout-orders/checkout-order.dto.d.ts +84 -0
  10. package/dist/api/checkout-orders/checkout-order.dto.d.ts.map +1 -0
  11. package/dist/api/checkout-orders/checkout-order.dto.js +3 -0
  12. package/dist/api/checkout-orders/checkout-order.dto.js.map +1 -0
  13. package/dist/api/checkout-orders/checkout-order.requests.d.ts +120 -0
  14. package/dist/api/checkout-orders/checkout-order.requests.d.ts.map +1 -0
  15. package/dist/api/checkout-orders/checkout-order.requests.js +3 -0
  16. package/dist/api/checkout-orders/checkout-order.requests.js.map +1 -0
  17. package/dist/api/checkout-orders/index.d.ts +4 -0
  18. package/dist/api/checkout-orders/index.d.ts.map +1 -0
  19. package/dist/api/checkout-orders/index.js +20 -0
  20. package/dist/api/checkout-orders/index.js.map +1 -0
  21. package/dist/api/index.d.ts +3 -0
  22. package/dist/api/index.d.ts.map +1 -1
  23. package/dist/api/index.js +3 -0
  24. package/dist/api/index.js.map +1 -1
  25. package/dist/api/inventory/brand.dto.d.ts +19 -0
  26. package/dist/api/inventory/brand.dto.d.ts.map +1 -0
  27. package/dist/api/inventory/brand.dto.js +3 -0
  28. package/dist/api/inventory/brand.dto.js.map +1 -0
  29. package/dist/api/inventory/brand.requests.d.ts +20 -0
  30. package/dist/api/inventory/brand.requests.d.ts.map +1 -0
  31. package/dist/api/inventory/brand.requests.js +3 -0
  32. package/dist/api/inventory/brand.requests.js.map +1 -0
  33. package/dist/api/inventory/index.d.ts +12 -0
  34. package/dist/api/inventory/index.d.ts.map +1 -0
  35. package/dist/api/inventory/index.js +28 -0
  36. package/dist/api/inventory/index.js.map +1 -0
  37. package/dist/api/inventory/inventory.constants.d.ts +10 -0
  38. package/dist/api/inventory/inventory.constants.d.ts.map +1 -0
  39. package/dist/api/inventory/inventory.constants.js +20 -0
  40. package/dist/api/inventory/inventory.constants.js.map +1 -0
  41. package/dist/api/inventory/product-category.dto.d.ts +19 -0
  42. package/dist/api/inventory/product-category.dto.d.ts.map +1 -0
  43. package/dist/api/inventory/product-category.dto.js +3 -0
  44. package/dist/api/inventory/product-category.dto.js.map +1 -0
  45. package/dist/api/inventory/product-category.requests.d.ts +24 -0
  46. package/dist/api/inventory/product-category.requests.d.ts.map +1 -0
  47. package/dist/api/inventory/product-category.requests.js +3 -0
  48. package/dist/api/inventory/product-category.requests.js.map +1 -0
  49. package/dist/api/inventory/product.dto.d.ts +59 -0
  50. package/dist/api/inventory/product.dto.d.ts.map +1 -0
  51. package/dist/api/inventory/product.dto.js +3 -0
  52. package/dist/api/inventory/product.dto.js.map +1 -0
  53. package/dist/api/inventory/product.requests.d.ts +66 -0
  54. package/dist/api/inventory/product.requests.d.ts.map +1 -0
  55. package/dist/api/inventory/product.requests.js +3 -0
  56. package/dist/api/inventory/product.requests.js.map +1 -0
  57. package/dist/api/inventory/supplier.dto.d.ts +33 -0
  58. package/dist/api/inventory/supplier.dto.d.ts.map +1 -0
  59. package/dist/api/inventory/supplier.dto.js +3 -0
  60. package/dist/api/inventory/supplier.dto.js.map +1 -0
  61. package/dist/api/inventory/supplier.requests.d.ts +33 -0
  62. package/dist/api/inventory/supplier.requests.d.ts.map +1 -0
  63. package/dist/api/inventory/supplier.requests.js +3 -0
  64. package/dist/api/inventory/supplier.requests.js.map +1 -0
  65. package/dist/api/inventory/warehouse.dto.d.ts +24 -0
  66. package/dist/api/inventory/warehouse.dto.d.ts.map +1 -0
  67. package/dist/api/inventory/warehouse.dto.js +3 -0
  68. package/dist/api/inventory/warehouse.dto.js.map +1 -0
  69. package/dist/api/inventory/warehouse.requests.d.ts +23 -0
  70. package/dist/api/inventory/warehouse.requests.d.ts.map +1 -0
  71. package/dist/api/inventory/warehouse.requests.js +3 -0
  72. package/dist/api/inventory/warehouse.requests.js.map +1 -0
  73. package/dist/enum/index.d.ts +0 -1
  74. package/dist/enum/index.d.ts.map +1 -1
  75. package/dist/enum/index.js +1 -3
  76. package/dist/enum/index.js.map +1 -1
  77. package/package.json +1 -1
  78. package/src/api/address.ts +22 -0
  79. package/src/api/checkout-orders/checkout-order.constants.ts +43 -0
  80. package/src/api/checkout-orders/checkout-order.dto.ts +91 -0
  81. package/src/api/checkout-orders/checkout-order.requests.ts +148 -0
  82. package/src/api/checkout-orders/index.ts +3 -0
  83. package/src/api/index.ts +3 -0
  84. package/src/api/inventory/brand.dto.ts +20 -0
  85. package/src/api/inventory/brand.requests.ts +23 -0
  86. package/src/api/inventory/index.ts +11 -0
  87. package/src/api/inventory/inventory.constants.ts +27 -0
  88. package/src/api/inventory/product-category.dto.ts +20 -0
  89. package/src/api/inventory/product-category.requests.ts +25 -0
  90. package/src/api/inventory/product.dto.ts +68 -0
  91. package/src/api/inventory/product.requests.ts +71 -0
  92. package/src/api/inventory/supplier.dto.ts +34 -0
  93. package/src/api/inventory/supplier.requests.ts +36 -0
  94. package/src/api/inventory/warehouse.dto.ts +25 -0
  95. package/src/api/inventory/warehouse.requests.ts +26 -0
  96. package/src/enum/index.ts +0 -1
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Flat postal address for company-scoped records (suppliers, warehouses).
3
+ *
4
+ * Stored as queryable columns rather than a blob, so `city` / `state` / `postalCode`
5
+ * can be filtered and reported on directly.
6
+ */
7
+ export interface PostalAddressDto {
8
+ addressLine1: string | null;
9
+ street: string | null;
10
+ city: string | null;
11
+ state: string | null;
12
+ country: string | null;
13
+ postalCode: string | null;
14
+ landmark: string | null;
15
+ placeId: string | null;
16
+ formattedAddress: string | null;
17
+ latitude: number | null;
18
+ longitude: number | null;
19
+ }
20
+ /** Write shape — every field optional so callers can send a partial address. */
21
+ export type PostalAddressInput = Partial<PostalAddressDto>;
22
+ //# sourceMappingURL=address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/api/address.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,gFAAgF;AAChF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/api/address.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /** Checkout order lifecycle — distinct from invoice status. */
2
+ export declare const CheckoutOrderStatus: {
3
+ readonly OPEN: "open";
4
+ readonly ABANDONED: "abandoned";
5
+ readonly FINALIZED: "finalized";
6
+ };
7
+ export type CheckoutOrderStatus = (typeof CheckoutOrderStatus)[keyof typeof CheckoutOrderStatus];
8
+ /** How the checkout order was started — informational for analytics and UI. */
9
+ export declare const CheckoutOrderSource: {
10
+ readonly QUICK_SALE: "quick_sale";
11
+ readonly APPOINTMENT_CHECKOUT: "appointment_checkout";
12
+ readonly MIXED: "mixed";
13
+ };
14
+ export type CheckoutOrderSource = (typeof CheckoutOrderSource)[keyof typeof CheckoutOrderSource];
15
+ /** Discriminator for add-to-cart intent — not a persisted entity. */
16
+ export declare const AddCheckoutLineKind: {
17
+ readonly CATALOG_SERVICE: "catalog_service";
18
+ readonly CATALOG_COMBO: "catalog_combo";
19
+ readonly APPOINTMENT_ROW: "appointment_row";
20
+ readonly GIFT_CARD: "gift_card";
21
+ readonly CATALOG_PRODUCT: "catalog_product";
22
+ readonly PACKAGE: "package";
23
+ };
24
+ export type AddCheckoutLineKind = (typeof AddCheckoutLineKind)[keyof typeof AddCheckoutLineKind];
25
+ /** Persisted line item types — ADR exclusive arc (appointment = service + refs in v1). */
26
+ export declare const CheckoutOrderLineItemType: {
27
+ readonly SERVICE: "service";
28
+ readonly GIFT_CARD: "gift_card";
29
+ readonly PRODUCT: "product";
30
+ readonly PACKAGE: "package";
31
+ };
32
+ export type CheckoutOrderLineItemType = (typeof CheckoutOrderLineItemType)[keyof typeof CheckoutOrderLineItemType];
33
+ //# sourceMappingURL=checkout-order.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout-order.constants.d.ts","sourceRoot":"","sources":["../../../src/api/checkout-orders/checkout-order.constants.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,qEAAqE;AACrE,eAAO,MAAM,mBAAmB;;;;;;;CAOtB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,0FAA0F;AAC1F,eAAO,MAAM,yBAAyB;;;;;CAK5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckoutOrderLineItemType = exports.AddCheckoutLineKind = exports.CheckoutOrderSource = exports.CheckoutOrderStatus = void 0;
4
+ /** Checkout order lifecycle — distinct from invoice status. */
5
+ exports.CheckoutOrderStatus = {
6
+ OPEN: 'open',
7
+ ABANDONED: 'abandoned',
8
+ FINALIZED: 'finalized',
9
+ };
10
+ /** How the checkout order was started — informational for analytics and UI. */
11
+ exports.CheckoutOrderSource = {
12
+ QUICK_SALE: 'quick_sale',
13
+ APPOINTMENT_CHECKOUT: 'appointment_checkout',
14
+ MIXED: 'mixed',
15
+ };
16
+ /** Discriminator for add-to-cart intent — not a persisted entity. */
17
+ exports.AddCheckoutLineKind = {
18
+ CATALOG_SERVICE: 'catalog_service',
19
+ CATALOG_COMBO: 'catalog_combo',
20
+ APPOINTMENT_ROW: 'appointment_row',
21
+ GIFT_CARD: 'gift_card',
22
+ CATALOG_PRODUCT: 'catalog_product',
23
+ PACKAGE: 'package',
24
+ };
25
+ /** Persisted line item types — ADR exclusive arc (appointment = service + refs in v1). */
26
+ exports.CheckoutOrderLineItemType = {
27
+ SERVICE: 'service',
28
+ GIFT_CARD: 'gift_card',
29
+ PRODUCT: 'product',
30
+ PACKAGE: 'package',
31
+ };
32
+ //# sourceMappingURL=checkout-order.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout-order.constants.js","sourceRoot":"","sources":["../../../src/api/checkout-orders/checkout-order.constants.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAClD,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;CACd,CAAC;AAKX,+EAA+E;AAClE,QAAA,mBAAmB,GAAG;IACjC,UAAU,EAAE,YAAY;IACxB,oBAAoB,EAAE,sBAAsB;IAC5C,KAAK,EAAE,OAAO;CACN,CAAC;AAKX,qEAAqE;AACxD,QAAA,mBAAmB,GAAG;IACjC,eAAe,EAAE,iBAAiB;IAClC,aAAa,EAAE,eAAe;IAC9B,eAAe,EAAE,iBAAiB;IAClC,SAAS,EAAE,WAAW;IACtB,eAAe,EAAE,iBAAiB;IAClC,OAAO,EAAE,SAAS;CACV,CAAC;AAKX,0FAA0F;AAC7E,QAAA,yBAAyB,GAAG;IACvC,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAC"}
@@ -0,0 +1,84 @@
1
+ import type { PhoneNumberModel } from '../../models/phone-number-model';
2
+ import type { DiscountType } from '../../enum/discount-type';
3
+ import type { ClientKind } from '../client-kind';
4
+ import type { TaxDetailDto } from '../invoices/invoice.dto';
5
+ import type { CheckoutOrderLineItemType, CheckoutOrderSource, CheckoutOrderStatus } from './checkout-order.constants';
6
+ export interface CheckoutOrderPreviewLineDto {
7
+ lineId: string;
8
+ itemType: CheckoutOrderLineItemType;
9
+ itemName: string;
10
+ staffId: string;
11
+ staffName: string;
12
+ staffId2: string | null;
13
+ staffName2: string | null;
14
+ quantity: string;
15
+ sortOrder: number;
16
+ unitPrice: string;
17
+ lineSubtotal: string;
18
+ lineDiscountType: DiscountType | null;
19
+ lineDiscountValue: string | null;
20
+ lineDiscountAmount: string;
21
+ cartDiscountAmount: string;
22
+ lineNet: string;
23
+ taxAmount: string;
24
+ lineTotal: string;
25
+ taxDetails: TaxDetailDto[];
26
+ /** Set when line belongs to a combo bundle */
27
+ comboId: string | null;
28
+ comboName: string | null;
29
+ /** Service line catalog refs */
30
+ serviceId: string | null;
31
+ serviceVariantId: string | null;
32
+ durationMinutes: number | null;
33
+ appointmentId: string | null;
34
+ appointmentItemId: string | null;
35
+ /** Gift card line refs */
36
+ giftCardProductId: string | null;
37
+ faceValue: string | null;
38
+ salePrice: string | null;
39
+ isGift: boolean | null;
40
+ customCode: string | null;
41
+ /** True when line discount is blocked (combo-group lines) */
42
+ lineDiscountDisabled: boolean;
43
+ }
44
+ export interface CheckoutOrderPreviewDto {
45
+ subtotal: string;
46
+ lineDiscountTotal: string;
47
+ cartDiscountTotal: string;
48
+ discountTotal: string;
49
+ taxTotal: string;
50
+ grandTotal: string;
51
+ lines: CheckoutOrderPreviewLineDto[];
52
+ }
53
+ export interface CheckoutOrderSummaryDto {
54
+ id: string;
55
+ orderNumber: string;
56
+ status: CheckoutOrderStatus;
57
+ source: CheckoutOrderSource;
58
+ locationId: string;
59
+ locationName: string;
60
+ clientType: ClientKind;
61
+ clientId: string | null;
62
+ clientDisplayName: string | null;
63
+ isDraft: boolean;
64
+ draftSavedAt: string | null;
65
+ lastActivityAt: string;
66
+ createdAt: string;
67
+ /** Preview grand total — from last preview cache */
68
+ previewTotal: string | null;
69
+ }
70
+ export interface CheckoutOrderDetailDto extends CheckoutOrderSummaryDto {
71
+ clientPhone: PhoneNumberModel | null;
72
+ clientEmail: string | null;
73
+ cartDiscountType: DiscountType | null;
74
+ cartDiscountValue: string | null;
75
+ receivedByStaffId: string;
76
+ receivedByStaffName: string;
77
+ createdByStaffId: string;
78
+ invoiceDate: string | null;
79
+ note: string | null;
80
+ abandonedAt: string | null;
81
+ finalizedInvoiceId: string | null;
82
+ preview: CheckoutOrderPreviewDto;
83
+ }
84
+ //# sourceMappingURL=checkout-order.dto.d.ts.map
@@ -0,0 +1 @@
1
+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AAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAuB,SAAQ,uBAAuB;IACrE,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gBAAgB,EAAE,YAAY,GAAG,IAAI,CAAC;IACtC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,OAAO,EAAE,uBAAuB,CAAC;CAClC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=checkout-order.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout-order.dto.js","sourceRoot":"","sources":["../../../src/api/checkout-orders/checkout-order.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,120 @@
1
+ import type { PhoneNumberModel } from '../../models/phone-number-model';
2
+ import type { DiscountType } from '../../enum/discount-type';
3
+ import type { ClientKind } from '../client-kind';
4
+ import type { PaginatedResult } from '../pagination';
5
+ import type { FinalizeInvoicePaymentRequest, FinalizeInvoicePreview } from '../invoices/invoice.requests';
6
+ import type { InvoiceSettlementMode } from '../invoices/invoice.constants';
7
+ import type { InvoiceDetailDto } from '../invoices/invoice.dto';
8
+ import type { AddCheckoutLineKind, CheckoutOrderSource, CheckoutOrderStatus } from './checkout-order.constants';
9
+ import type { CheckoutOrderDetailDto, CheckoutOrderSummaryDto } from './checkout-order.dto';
10
+ export interface CreateCheckoutOrderRequest {
11
+ locationId: string;
12
+ source?: CheckoutOrderSource;
13
+ /** Seed appointment checkout — optional at create */
14
+ appointmentIds?: string[];
15
+ clientType?: ClientKind;
16
+ clientId?: string | null;
17
+ clientDisplayName?: string | null;
18
+ clientPhone?: PhoneNumberModel | null;
19
+ clientEmail?: string | null;
20
+ receivedByStaffId?: string;
21
+ invoiceDate?: string | null;
22
+ note?: string | null;
23
+ }
24
+ export interface AddCatalogServiceLineRequest {
25
+ kind: typeof AddCheckoutLineKind.CATALOG_SERVICE;
26
+ serviceVariantId: string;
27
+ staffId: string;
28
+ staffId2?: string | null;
29
+ quantity?: string;
30
+ }
31
+ export interface AddCatalogComboLineRequest {
32
+ kind: typeof AddCheckoutLineKind.CATALOG_COMBO;
33
+ comboId: string;
34
+ staffId: string;
35
+ staffId2?: string | null;
36
+ }
37
+ export interface AddAppointmentRowLineRequest {
38
+ kind: typeof AddCheckoutLineKind.APPOINTMENT_ROW;
39
+ /** Cart selection key — groupId for groups, else appointment id */
40
+ rowId?: string;
41
+ /** Alternative: explicit appointment ids when row already resolved client-side */
42
+ appointmentIds?: string[];
43
+ }
44
+ export interface AddGiftCardLineRequest {
45
+ kind: typeof AddCheckoutLineKind.GIFT_CARD;
46
+ giftCardProductId: string;
47
+ faceValue: string;
48
+ salePrice: string;
49
+ isGift: boolean;
50
+ customCode?: string | null;
51
+ staffId: string;
52
+ }
53
+ export interface AddCatalogProductLineRequest {
54
+ kind: typeof AddCheckoutLineKind.CATALOG_PRODUCT;
55
+ productId: string;
56
+ staffId: string;
57
+ quantity?: string;
58
+ }
59
+ export interface AddPackageLineRequest {
60
+ kind: typeof AddCheckoutLineKind.PACKAGE;
61
+ packageId: string;
62
+ staffId: string;
63
+ }
64
+ export type AddCheckoutLineRequest = AddCatalogServiceLineRequest | AddCatalogComboLineRequest | AddAppointmentRowLineRequest | AddGiftCardLineRequest | AddCatalogProductLineRequest | AddPackageLineRequest;
65
+ export interface UpdateCheckoutOrderRequest {
66
+ clientType?: ClientKind;
67
+ clientId?: string | null;
68
+ clientDisplayName?: string | null;
69
+ clientPhone?: PhoneNumberModel | null;
70
+ clientEmail?: string | null;
71
+ receivedByStaffId?: string;
72
+ invoiceDate?: string | null;
73
+ note?: string | null;
74
+ cartDiscountType?: DiscountType | null;
75
+ cartDiscountValue?: string | null;
76
+ isDraft?: boolean;
77
+ }
78
+ export interface UpdateCheckoutOrderLineRequest {
79
+ staffId?: string;
80
+ staffId2?: string | null;
81
+ quantity?: string;
82
+ lineDiscountType?: DiscountType | null;
83
+ lineDiscountValue?: string | null;
84
+ }
85
+ /** Soft-delete all open lines whose appointmentId is in the list — one round-trip per row deselect. */
86
+ export interface BulkDeleteCheckoutLinesByAppointmentsRequest {
87
+ appointmentIds: string[];
88
+ }
89
+ export interface ListCheckoutOrdersQuery {
90
+ page?: number;
91
+ pageSize?: number;
92
+ status?: CheckoutOrderStatus;
93
+ isDraft?: boolean;
94
+ locationId?: string;
95
+ }
96
+ export type CheckoutOrderListResult = PaginatedResult<CheckoutOrderSummaryDto>;
97
+ export interface FinalizeCheckoutOrderRequest {
98
+ /** Calendar date in company timezone — YYYY-MM-DD */
99
+ invoiceDate: string;
100
+ clientType: ClientKind;
101
+ clientId?: string | null;
102
+ clientDisplayName?: string | null;
103
+ clientPhone?: PhoneNumberModel | null;
104
+ clientEmail?: string | null;
105
+ note?: string | null;
106
+ receivedByStaffId: string;
107
+ cartDiscountValue?: string;
108
+ cartDiscountType?: DiscountType | null;
109
+ settlementMode: InvoiceSettlementMode;
110
+ payments?: FinalizeInvoicePaymentRequest[];
111
+ preview: FinalizeInvoicePreview;
112
+ }
113
+ export type FinalizeCheckoutOrderResponse = InvoiceDetailDto;
114
+ export type CreateCheckoutOrderResponse = CheckoutOrderDetailDto;
115
+ export type GetCheckoutOrderResponse = CheckoutOrderDetailDto;
116
+ export type AddCheckoutLineResponse = CheckoutOrderDetailDto;
117
+ export type UpdateCheckoutOrderResponse = CheckoutOrderDetailDto;
118
+ export type UpdateCheckoutOrderLineResponse = CheckoutOrderDetailDto;
119
+ export type PreviewCheckoutOrderResponse = CheckoutOrderDetailDto;
120
+ //# sourceMappingURL=checkout-order.requests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout-order.requests.d.ts","sourceRoot":"","sources":["../../../src/api/checkout-orders/checkout-order.requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EACV,6BAA6B,EAC7B,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE5F,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,G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E,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAE/E,MAAM,WAAW,4BAA4B;IAC3C,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACvC,cAAc,EAAE,qBAAqB,CAAC;IACtC,QAAQ,CAAC,EAAE,6BAA6B,EAAE,CAAC;IAC3C,OAAO,EAAE,sBAAsB,CAAC;CACjC;AAED,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,CAAC;AAE7D,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,CAAC;AACjE,MAAM,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAC9D,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,CAAC;AAC7D,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,CAAC;AACjE,MAAM,MAAM,+BAA+B,GAAG,sBAAsB,CAAC;AACrE,MAAM,MAAM,4BAA4B,GAAG,sBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=checkout-order.requests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout-order.requests.js","sourceRoot":"","sources":["../../../src/api/checkout-orders/checkout-order.requests.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './checkout-order.constants';
2
+ export * from './checkout-order.dto';
3
+ export * from './checkout-order.requests';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/checkout-orders/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./checkout-order.constants"), exports);
18
+ __exportStar(require("./checkout-order.dto"), exports);
19
+ __exportStar(require("./checkout-order.requests"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/checkout-orders/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,uDAAqC;AACrC,4DAA0C"}
@@ -6,6 +6,7 @@ export * from './subscription';
6
6
  export * from './onboarding';
7
7
  export * from './master';
8
8
  export * from './pagination';
9
+ export * from './address';
9
10
  export * from './tax/index';
10
11
  export * from './gst-number/index';
11
12
  export * from './cancellation-reason';
@@ -31,7 +32,9 @@ export * from './permissions/index';
31
32
  export * from './payment-methods/index';
32
33
  export * from './clients/index';
33
34
  export * from './invoices/index';
35
+ export * from './checkout-orders/index';
34
36
  export * from './payment-transactions/index';
35
37
  export * from './gift-cards/index';
38
+ export * from './inventory/index';
36
39
  export * from './reports/gift-cards/index';
37
40
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC"}
package/dist/api/index.js CHANGED
@@ -22,6 +22,7 @@ __exportStar(require("./subscription"), exports);
22
22
  __exportStar(require("./onboarding"), exports);
23
23
  __exportStar(require("./master"), exports);
24
24
  __exportStar(require("./pagination"), exports);
25
+ __exportStar(require("./address"), exports);
25
26
  __exportStar(require("./tax/index"), exports);
26
27
  __exportStar(require("./gst-number/index"), exports);
27
28
  __exportStar(require("./cancellation-reason"), exports);
@@ -47,7 +48,9 @@ __exportStar(require("./permissions/index"), exports);
47
48
  __exportStar(require("./payment-methods/index"), exports);
48
49
  __exportStar(require("./clients/index"), exports);
49
50
  __exportStar(require("./invoices/index"), exports);
51
+ __exportStar(require("./checkout-orders/index"), exports);
50
52
  __exportStar(require("./payment-transactions/index"), exports);
51
53
  __exportStar(require("./gift-cards/index"), exports);
54
+ __exportStar(require("./inventory/index"), exports);
52
55
  __exportStar(require("./reports/gift-cards/index"), exports);
53
56
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,gDAA8B;AAC9B,0CAAwB;AACxB,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,8CAA4B;AAC5B,qDAAmC;AACnC,wDAAsC;AACtC,4DAA0C;AAC1C,uDAAqC;AACrC,6DAA2C;AAC3C,uDAAqC;AACrC,mDAAiC;AACjC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,6DAA2C;AAC3C,mDAAiC;AACjC,yDAAuC;AACvC,qDAAmC;AACnC,sDAAoC;AACpC,0DAAwC;AACxC,kDAAgC;AAChC,mDAAiC;AACjC,+DAA6C;AAC7C,qDAAmC;AACnC,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,gDAA8B;AAC9B,0CAAwB;AACxB,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,4CAA0B;AAC1B,8CAA4B;AAC5B,qDAAmC;AACnC,wDAAsC;AACtC,4DAA0C;AAC1C,uDAAqC;AACrC,6DAA2C;AAC3C,uDAAqC;AACrC,mDAAiC;AACjC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,2DAAyC;AACzC,oDAAkC;AAClC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,6DAA2C;AAC3C,mDAAiC;AACjC,yDAAuC;AACvC,qDAAmC;AACnC,sDAAoC;AACpC,0DAAwC;AACxC,kDAAgC;AAChC,mDAAiC;AACjC,0DAAwC;AACxC,+DAA6C;AAC7C,qDAAmC;AACnC,oDAAkC;AAClC,6DAA2C"}
@@ -0,0 +1,19 @@
1
+ import type { AuditActor } from '../audit';
2
+ import type { InventoryCreationSource } from './inventory.constants';
3
+ /** Company-wide product brand. Merchandising label only — optional on a product. */
4
+ export interface BrandSummaryDto {
5
+ id: string;
6
+ name: string;
7
+ description: string | null;
8
+ active: boolean;
9
+ creationSource: InventoryCreationSource;
10
+ }
11
+ export interface BrandDetailDto extends BrandSummaryDto {
12
+ importBatchId: string | null;
13
+ createdAt: string;
14
+ updatedAt: string | null;
15
+ createdBy: AuditActor | null;
16
+ updatedBy: AuditActor | null;
17
+ deletedBy: AuditActor | null;
18
+ }
19
+ //# sourceMappingURL=brand.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.dto.d.ts","sourceRoot":"","sources":["../../../src/api/inventory/brand.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAErE,oFAAoF;AACpF,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,uBAAuB,CAAC;CACzC;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;CAC9B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=brand.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.dto.js","sourceRoot":"","sources":["../../../src/api/inventory/brand.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import type { PaginatedResult } from '../pagination';
2
+ import type { BrandSummaryDto } from './brand.dto';
3
+ export interface ListBrandsQuery {
4
+ page?: number;
5
+ pageSize?: number;
6
+ search?: string;
7
+ active?: boolean;
8
+ }
9
+ export type BrandListResult = PaginatedResult<BrandSummaryDto>;
10
+ export interface CreateBrandRequest {
11
+ name: string;
12
+ description?: string | null;
13
+ active?: boolean;
14
+ }
15
+ export interface UpdateBrandRequest {
16
+ name?: string;
17
+ description?: string | null;
18
+ active?: boolean;
19
+ }
20
+ //# sourceMappingURL=brand.requests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.requests.d.ts","sourceRoot":"","sources":["../../../src/api/inventory/brand.requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;AAE/D,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=brand.requests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.requests.js","sourceRoot":"","sources":["../../../src/api/inventory/brand.requests.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export * from './inventory.constants';
2
+ export * from './product-category.dto';
3
+ export * from './product-category.requests';
4
+ export * from './brand.dto';
5
+ export * from './brand.requests';
6
+ export * from './supplier.dto';
7
+ export * from './supplier.requests';
8
+ export * from './warehouse.dto';
9
+ export * from './warehouse.requests';
10
+ export * from './product.dto';
11
+ export * from './product.requests';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/inventory/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./inventory.constants"), exports);
18
+ __exportStar(require("./product-category.dto"), exports);
19
+ __exportStar(require("./product-category.requests"), exports);
20
+ __exportStar(require("./brand.dto"), exports);
21
+ __exportStar(require("./brand.requests"), exports);
22
+ __exportStar(require("./supplier.dto"), exports);
23
+ __exportStar(require("./supplier.requests"), exports);
24
+ __exportStar(require("./warehouse.dto"), exports);
25
+ __exportStar(require("./warehouse.requests"), exports);
26
+ __exportStar(require("./product.dto"), exports);
27
+ __exportStar(require("./product.requests"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/inventory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,yDAAuC;AACvC,8DAA4C;AAC5C,8CAA4B;AAC5B,mDAAiC;AACjC,iDAA+B;AAC/B,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,gDAA8B;AAC9B,qDAAmC"}
@@ -0,0 +1,10 @@
1
+ /** How an inventory master record came to exist. */
2
+ export type InventoryCreationSource = 'form' | 'import';
3
+ /** Whether a Product is sold, used internally, or both. */
4
+ export type ProductIntent = 'resale' | 'internal' | 'both';
5
+ /** Location default product tax, or one custom tax on the Product. */
6
+ export type ProductTaxMode = 'default' | 'custom';
7
+ /** Pack-size unit codes stored on the Product. */
8
+ export declare const PRODUCT_UNIT_MEASUREMENTS: readonly ["ml", "L", "oz", "mg", "g", "kg", "lb", "cm", "in", "ft", "m", "pcs", "box"];
9
+ export type ProductUnitMeasurement = (typeof PRODUCT_UNIT_MEASUREMENTS)[number];
10
+ //# sourceMappingURL=inventory.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory.constants.d.ts","sourceRoot":"","sources":["../../../src/api/inventory/inventory.constants.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAExD,2DAA2D;AAC3D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAE3D,sEAAsE;AACtE,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAC;AAElD,kDAAkD;AAClD,eAAO,MAAM,yBAAyB,wFAc5B,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRODUCT_UNIT_MEASUREMENTS = void 0;
4
+ /** Pack-size unit codes stored on the Product. */
5
+ exports.PRODUCT_UNIT_MEASUREMENTS = [
6
+ 'ml',
7
+ 'L',
8
+ 'oz',
9
+ 'mg',
10
+ 'g',
11
+ 'kg',
12
+ 'lb',
13
+ 'cm',
14
+ 'in',
15
+ 'ft',
16
+ 'm',
17
+ 'pcs',
18
+ 'box',
19
+ ];
20
+ //# sourceMappingURL=inventory.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory.constants.js","sourceRoot":"","sources":["../../../src/api/inventory/inventory.constants.ts"],"names":[],"mappings":";;;AASA,kDAAkD;AACrC,QAAA,yBAAyB,GAAG;IACvC,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,GAAG;IACH,KAAK;IACL,KAAK;CACG,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { AuditActor } from '../audit';
2
+ import type { InventoryCreationSource } from './inventory.constants';
3
+ /** Company-wide product category. Merchandising label only — optional on a product. */
4
+ export interface ProductCategorySummaryDto {
5
+ id: string;
6
+ name: string;
7
+ sortOrder: number;
8
+ active: boolean;
9
+ creationSource: InventoryCreationSource;
10
+ }
11
+ export interface ProductCategoryDetailDto extends ProductCategorySummaryDto {
12
+ importBatchId: string | null;
13
+ createdAt: string;
14
+ updatedAt: string | null;
15
+ createdBy: AuditActor | null;
16
+ updatedBy: AuditActor | null;
17
+ deletedBy: AuditActor | null;
18
+ }
19
+ //# sourceMappingURL=product-category.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-category.dto.d.ts","sourceRoot":"","sources":["../../../src/api/inventory/product-category.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAErE,uFAAuF;AACvF,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,uBAAuB,CAAC;CACzC;AAED,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,UAAU,GAAG,IAAI,CAAC;CAC9B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=product-category.dto.js.map