types-salon-management 1.0.22 → 1.0.24

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 (36) hide show
  1. package/dist/api/index.d.ts +1 -0
  2. package/dist/api/index.d.ts.map +1 -1
  3. package/dist/api/index.js +1 -0
  4. package/dist/api/index.js.map +1 -1
  5. package/dist/api/payment-methods/index.d.ts +4 -0
  6. package/dist/api/payment-methods/index.d.ts.map +1 -0
  7. package/dist/api/payment-methods/index.js +20 -0
  8. package/dist/api/payment-methods/index.js.map +1 -0
  9. package/dist/api/payment-methods/payment-method.dto.d.ts +26 -0
  10. package/dist/api/payment-methods/payment-method.dto.d.ts.map +1 -0
  11. package/dist/api/payment-methods/payment-method.dto.js +3 -0
  12. package/dist/api/payment-methods/payment-method.dto.js.map +1 -0
  13. package/dist/api/payment-methods/payment-method.enums.d.ts +23 -0
  14. package/dist/api/payment-methods/payment-method.enums.d.ts.map +1 -0
  15. package/dist/api/payment-methods/payment-method.enums.js +30 -0
  16. package/dist/api/payment-methods/payment-method.enums.js.map +1 -0
  17. package/dist/api/payment-methods/payment-method.requests.d.ts +17 -0
  18. package/dist/api/payment-methods/payment-method.requests.d.ts.map +1 -0
  19. package/dist/api/payment-methods/payment-method.requests.js +3 -0
  20. package/dist/api/payment-methods/payment-method.requests.js.map +1 -0
  21. package/dist/api/services/index.d.ts +2 -0
  22. package/dist/api/services/index.d.ts.map +1 -1
  23. package/dist/api/services/index.js +5 -0
  24. package/dist/api/services/index.js.map +1 -1
  25. package/dist/api/services/service.import.d.ts +79 -0
  26. package/dist/api/services/service.import.d.ts.map +1 -0
  27. package/dist/api/services/service.import.js +20 -0
  28. package/dist/api/services/service.import.js.map +1 -0
  29. package/package.json +1 -1
  30. package/src/api/index.ts +1 -0
  31. package/src/api/payment-methods/index.ts +3 -0
  32. package/src/api/payment-methods/payment-method.dto.ts +31 -0
  33. package/src/api/payment-methods/payment-method.enums.ts +35 -0
  34. package/src/api/payment-methods/payment-method.requests.ts +19 -0
  35. package/src/api/services/index.ts +16 -0
  36. package/src/api/services/service.import.ts +96 -0
@@ -19,4 +19,5 @@ export * from './service-categories/index';
19
19
  export * from './services/index';
20
20
  export * from './user-roles/index';
21
21
  export * from './permissions/index';
22
+ export * from './payment-methods/index';
22
23
  //# 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,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,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,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,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
package/dist/api/index.js CHANGED
@@ -35,4 +35,5 @@ __exportStar(require("./service-categories/index"), exports);
35
35
  __exportStar(require("./services/index"), exports);
36
36
  __exportStar(require("./user-roles/index"), exports);
37
37
  __exportStar(require("./permissions/index"), exports);
38
+ __exportStar(require("./payment-methods/index"), exports);
38
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,0CAAwB;AACxB,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,8CAA4B;AAC5B,qDAAmC;AACnC,wDAAsC;AACtC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,2DAAyC;AACzC,gDAA8B;AAC9B,oDAAkC;AAClC,4DAA0C;AAC1C,6DAA2C;AAC3C,mDAAiC;AACjC,qDAAmC;AACnC,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAqE;AACrE,0CAAwB;AACxB,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,8CAA4B;AAC5B,qDAAmC;AACnC,wDAAsC;AACtC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,2DAAyC;AACzC,gDAA8B;AAC9B,oDAAkC;AAClC,4DAA0C;AAC1C,6DAA2C;AAC3C,mDAAiC;AACjC,qDAAmC;AACnC,sDAAoC;AACpC,0DAAwC"}
@@ -0,0 +1,4 @@
1
+ export * from './payment-method.enums';
2
+ export * from './payment-method.dto';
3
+ export * from './payment-method.requests';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/payment-methods/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,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("./payment-method.enums"), exports);
18
+ __exportStar(require("./payment-method.dto"), exports);
19
+ __exportStar(require("./payment-method.requests"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/payment-methods/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,uDAAqC;AACrC,4DAA0C"}
@@ -0,0 +1,26 @@
1
+ import type { AuditActor } from '../audit';
2
+ import type { PaymentProcessingMethod } from '../../enum/payment-processing-method';
3
+ import type { CustomPaymentMode, PaymentMethodKind, PaymentMethodSource } from './payment-method.enums';
4
+ export interface PaymentMethodDto {
5
+ id: string;
6
+ kind: PaymentMethodKind;
7
+ name: string;
8
+ paymentMode: CustomPaymentMode | null;
9
+ processingMethod: PaymentProcessingMethod;
10
+ paymentProviderId: string | null;
11
+ isCheckoutDefault: boolean;
12
+ active: boolean;
13
+ sortOrder: number;
14
+ source: PaymentMethodSource;
15
+ description: string | null;
16
+ createdAt: string;
17
+ updatedAt: string | null;
18
+ createdBy: AuditActor | null;
19
+ updatedBy: AuditActor | null;
20
+ deletedBy: AuditActor | null;
21
+ }
22
+ export interface CustomPaymentModeOptionDto {
23
+ value: CustomPaymentMode;
24
+ label: string;
25
+ }
26
+ //# sourceMappingURL=payment-method.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-method.dto.d.ts","sourceRoot":"","sources":["../../../src/api/payment-methods/payment-method.dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtC,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,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;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,iBAAiB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=payment-method.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-method.dto.js","sourceRoot":"","sources":["../../../src/api/payment-methods/payment-method.dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ export declare const PaymentMethodKind: {
2
+ readonly Cash: "cash";
3
+ readonly GiftCard: "gift_card";
4
+ readonly Package: "package";
5
+ readonly Custom: "custom";
6
+ };
7
+ export type PaymentMethodKind = (typeof PaymentMethodKind)[keyof typeof PaymentMethodKind];
8
+ export declare const PaymentMethodSource: {
9
+ readonly System: "system";
10
+ readonly User: "user";
11
+ };
12
+ export type PaymentMethodSource = (typeof PaymentMethodSource)[keyof typeof PaymentMethodSource];
13
+ export declare const CustomPaymentMode: {
14
+ readonly Upi: "upi";
15
+ readonly NetBanking: "net_banking";
16
+ readonly DebitCard: "debit_card";
17
+ readonly CreditCard: "credit_card";
18
+ readonly Card: "card";
19
+ readonly Cheque: "cheque";
20
+ };
21
+ export type CustomPaymentMode = (typeof CustomPaymentMode)[keyof typeof CustomPaymentMode];
22
+ export declare const CustomPaymentModeLabels: Record<CustomPaymentMode, string>;
23
+ //# sourceMappingURL=payment-method.enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-method.enums.d.ts","sourceRoot":"","sources":["../../../src/api/payment-methods/payment-method.enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE3F,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjG,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE3F,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAOrE,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomPaymentModeLabels = exports.CustomPaymentMode = exports.PaymentMethodSource = exports.PaymentMethodKind = void 0;
4
+ exports.PaymentMethodKind = {
5
+ Cash: 'cash',
6
+ GiftCard: 'gift_card',
7
+ Package: 'package',
8
+ Custom: 'custom',
9
+ };
10
+ exports.PaymentMethodSource = {
11
+ System: 'system',
12
+ User: 'user',
13
+ };
14
+ exports.CustomPaymentMode = {
15
+ Upi: 'upi',
16
+ NetBanking: 'net_banking',
17
+ DebitCard: 'debit_card',
18
+ CreditCard: 'credit_card',
19
+ Card: 'card',
20
+ Cheque: 'cheque',
21
+ };
22
+ exports.CustomPaymentModeLabels = {
23
+ [exports.CustomPaymentMode.Upi]: 'UPI',
24
+ [exports.CustomPaymentMode.NetBanking]: 'Netbanking',
25
+ [exports.CustomPaymentMode.DebitCard]: 'Debit Card',
26
+ [exports.CustomPaymentMode.CreditCard]: 'Credit Card',
27
+ [exports.CustomPaymentMode.Card]: 'Card',
28
+ [exports.CustomPaymentMode.Cheque]: 'Cheque',
29
+ };
30
+ //# sourceMappingURL=payment-method.enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-method.enums.js","sourceRoot":"","sources":["../../../src/api/payment-methods/payment-method.enums.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC;AAIE,QAAA,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACJ,CAAC;AAIE,QAAA,iBAAiB,GAAG;IAC/B,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,aAAa;IACzB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AAIE,QAAA,uBAAuB,GAAsC;IACxE,CAAC,yBAAiB,CAAC,GAAG,CAAC,EAAE,KAAK;IAC9B,CAAC,yBAAiB,CAAC,UAAU,CAAC,EAAE,YAAY;IAC5C,CAAC,yBAAiB,CAAC,SAAS,CAAC,EAAE,YAAY;IAC3C,CAAC,yBAAiB,CAAC,UAAU,CAAC,EAAE,aAAa;IAC7C,CAAC,yBAAiB,CAAC,IAAI,CAAC,EAAE,MAAM;IAChC,CAAC,yBAAiB,CAAC,MAAM,CAAC,EAAE,QAAQ;CACrC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { CustomPaymentMode } from './payment-method.enums';
2
+ export interface CreatePaymentMethodRequest {
3
+ name: string;
4
+ paymentMode: CustomPaymentMode;
5
+ description?: string | null;
6
+ active?: boolean;
7
+ }
8
+ export interface UpdatePaymentMethodRequest {
9
+ name?: string;
10
+ paymentMode?: CustomPaymentMode;
11
+ description?: string | null;
12
+ active?: boolean;
13
+ }
14
+ export interface ReorderPaymentMethodsRequest {
15
+ paymentMethodIds: string[];
16
+ }
17
+ //# sourceMappingURL=payment-method.requests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-method.requests.d.ts","sourceRoot":"","sources":["../../../src/api/payment-methods/payment-method.requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,iBAAiB,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=payment-method.requests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-method.requests.js","sourceRoot":"","sources":["../../../src/api/payment-methods/payment-method.requests.ts"],"names":[],"mappings":""}
@@ -2,4 +2,6 @@ export * from './service.enums';
2
2
  export type { ServiceCategoryRefDto, ServiceContraindicationRefDto, ServiceDetailDto, ServiceListResult, ServiceLocationRefDto, ServiceLocationTaxDto, ServicePhotoDto, ServiceResourceRefDto, ServiceStaffRefDto, ServiceSummaryDto, ServiceVariantDetailDto, ServiceVariantDurationSegmentDto, ServiceVariantPriceOverrideDto, ServiceVariantSummaryDto, } from './service.dto';
3
3
  export type { ResolvedVariantPriceDto, ResolveVariantPriceQuery, SearchServicePickerQuery, ServicePickerDurationSegmentDto, ServicePickerItemDto, ServicePickerResult, } from './service.picker';
4
4
  export type { CreateServiceRequest, ListServicesQuery, ServiceLocationTaxInput, ServicePhotoInput, ServiceVariantDurationSegmentInput, ServiceVariantInput, ServiceVariantPriceOverrideInput, UpdateServiceRequest, } from './service.requests';
5
+ export { ServiceImportBatchStatus, ServiceImportRowImportStatus, ServiceImportRowValidationStatus, } from './service.import';
6
+ export type { ImportPreviewRowsResult, ListImportPreviewRowsQuery, ServiceImportBatchDto, ServiceImportDefinitionField, ServiceImportDefinitions, ServiceImportPreviewResponse, ServiceImportPreviewRowDto, ServiceImportRowPayload, ServiceImportTemplateRequest, } from './service.import';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,YAAY,EACV,qBAAqB,EACrB,6BAA6B,EAC7B,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,GACzB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,+BAA+B,EAC/B,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,kCAAkC,EAClC,mBAAmB,EACnB,gCAAgC,EAChC,oBAAoB,GACrB,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,YAAY,EACV,qBAAqB,EACrB,6BAA6B,EAC7B,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,GACzB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,+BAA+B,EAC/B,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,kCAAkC,EAClC,mBAAmB,EACnB,gCAAgC,EAChC,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gCAAgC,GACjC,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EACxB,4BAA4B,EAC5B,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC"}
@@ -14,5 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ServiceImportRowValidationStatus = exports.ServiceImportRowImportStatus = exports.ServiceImportBatchStatus = void 0;
17
18
  __exportStar(require("./service.enums"), exports);
19
+ var service_import_1 = require("./service.import");
20
+ Object.defineProperty(exports, "ServiceImportBatchStatus", { enumerable: true, get: function () { return service_import_1.ServiceImportBatchStatus; } });
21
+ Object.defineProperty(exports, "ServiceImportRowImportStatus", { enumerable: true, get: function () { return service_import_1.ServiceImportRowImportStatus; } });
22
+ Object.defineProperty(exports, "ServiceImportRowValidationStatus", { enumerable: true, get: function () { return service_import_1.ServiceImportRowValidationStatus; } });
18
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAAgC;AAmChC,mDAI0B;AAHxB,0HAAA,wBAAwB,OAAA;AACxB,8HAAA,4BAA4B,OAAA;AAC5B,kIAAA,gCAAgC,OAAA"}
@@ -0,0 +1,79 @@
1
+ import type { PaginatedResult } from '../pagination';
2
+ export declare const ServiceImportBatchStatus: {
3
+ readonly Pending: "pending";
4
+ readonly Processing: "processing";
5
+ readonly Completed: "completed";
6
+ readonly Failed: "failed";
7
+ };
8
+ export type ServiceImportBatchStatus = (typeof ServiceImportBatchStatus)[keyof typeof ServiceImportBatchStatus];
9
+ export declare const ServiceImportRowValidationStatus: {
10
+ readonly Valid: "valid";
11
+ readonly Invalid: "invalid";
12
+ };
13
+ export type ServiceImportRowValidationStatus = (typeof ServiceImportRowValidationStatus)[keyof typeof ServiceImportRowValidationStatus];
14
+ export declare const ServiceImportRowImportStatus: {
15
+ readonly Pending: "pending";
16
+ readonly Imported: "imported";
17
+ readonly Skipped: "skipped";
18
+ readonly Failed: "failed";
19
+ };
20
+ export type ServiceImportRowImportStatus = (typeof ServiceImportRowImportStatus)[keyof typeof ServiceImportRowImportStatus];
21
+ /** Parsed row from import spreadsheet (7 template columns). */
22
+ export interface ServiceImportRowPayload {
23
+ Name: string;
24
+ Category: string;
25
+ Duration: string;
26
+ Price: string;
27
+ 'Service For': string;
28
+ 'Online Booking'?: string | boolean;
29
+ Description?: string;
30
+ }
31
+ export interface ServiceImportPreviewRowDto extends ServiceImportRowPayload {
32
+ rowIndex: number;
33
+ issues?: string[];
34
+ }
35
+ export interface ServiceImportPreviewResponse {
36
+ batchId: string;
37
+ importBatchId: string;
38
+ fileName: string;
39
+ validCount: number;
40
+ invalidCount: number;
41
+ totalRows: number;
42
+ }
43
+ export interface ServiceImportBatchDto {
44
+ id: string;
45
+ importBatchId: string;
46
+ fileName: string;
47
+ status: ServiceImportBatchStatus;
48
+ totalRows: number;
49
+ validCount: number;
50
+ invalidCount: number;
51
+ importedCount: number;
52
+ failedCount: number;
53
+ processedCount: number;
54
+ progressPercent: number;
55
+ errorMessage?: string | null;
56
+ createdAt: string;
57
+ updatedAt?: string | null;
58
+ }
59
+ export interface ListImportPreviewRowsQuery {
60
+ kind: 'valid' | 'invalid';
61
+ page?: number;
62
+ pageSize?: number;
63
+ }
64
+ export type ImportPreviewRowsResult = PaginatedResult<ServiceImportPreviewRowDto>;
65
+ export interface ServiceImportDefinitionField {
66
+ required?: boolean;
67
+ type?: 'string' | 'number' | 'date' | 'phoneNumber';
68
+ examples?: Array<string | number>;
69
+ fieldDescription?: string;
70
+ allowedValues?: string[];
71
+ valueMap?: Record<string, string | boolean | number>;
72
+ headers?: string[];
73
+ }
74
+ export type ServiceImportDefinitions = Record<string, ServiceImportDefinitionField>;
75
+ export interface ServiceImportTemplateRequest {
76
+ importDefinitions: ServiceImportDefinitions;
77
+ templateName?: string;
78
+ }
79
+ //# sourceMappingURL=service.import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.import.d.ts","sourceRoot":"","sources":["../../../src/api/services/service.import.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceImportRowImportStatus = exports.ServiceImportRowValidationStatus = exports.ServiceImportBatchStatus = void 0;
4
+ exports.ServiceImportBatchStatus = {
5
+ Pending: 'pending',
6
+ Processing: 'processing',
7
+ Completed: 'completed',
8
+ Failed: 'failed',
9
+ };
10
+ exports.ServiceImportRowValidationStatus = {
11
+ Valid: 'valid',
12
+ Invalid: 'invalid',
13
+ };
14
+ exports.ServiceImportRowImportStatus = {
15
+ Pending: 'pending',
16
+ Imported: 'imported',
17
+ Skipped: 'skipped',
18
+ Failed: 'failed',
19
+ };
20
+ //# sourceMappingURL=service.import.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.import.js","sourceRoot":"","sources":["../../../src/api/services/service.import.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAC;AAKE,QAAA,gCAAgC,GAAG;IAC9C,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACV,CAAC;AAKE,QAAA,4BAA4B,GAAG;IAC1C,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-salon-management",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "Types for Salon Management",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/api/index.ts CHANGED
@@ -19,3 +19,4 @@ export * from './service-categories/index';
19
19
  export * from './services/index';
20
20
  export * from './user-roles/index';
21
21
  export * from './permissions/index';
22
+ export * from './payment-methods/index';
@@ -0,0 +1,3 @@
1
+ export * from './payment-method.enums';
2
+ export * from './payment-method.dto';
3
+ export * from './payment-method.requests';
@@ -0,0 +1,31 @@
1
+ import type { AuditActor } from '../audit';
2
+ import type { PaymentProcessingMethod } from '../../enum/payment-processing-method';
3
+ import type {
4
+ CustomPaymentMode,
5
+ PaymentMethodKind,
6
+ PaymentMethodSource,
7
+ } from './payment-method.enums';
8
+
9
+ export interface PaymentMethodDto {
10
+ id: string;
11
+ kind: PaymentMethodKind;
12
+ name: string;
13
+ paymentMode: CustomPaymentMode | null;
14
+ processingMethod: PaymentProcessingMethod;
15
+ paymentProviderId: string | null;
16
+ isCheckoutDefault: boolean;
17
+ active: boolean;
18
+ sortOrder: number;
19
+ source: PaymentMethodSource;
20
+ description: string | null;
21
+ createdAt: string;
22
+ updatedAt: string | null;
23
+ createdBy: AuditActor | null;
24
+ updatedBy: AuditActor | null;
25
+ deletedBy: AuditActor | null;
26
+ }
27
+
28
+ export interface CustomPaymentModeOptionDto {
29
+ value: CustomPaymentMode;
30
+ label: string;
31
+ }
@@ -0,0 +1,35 @@
1
+ export const PaymentMethodKind = {
2
+ Cash: 'cash',
3
+ GiftCard: 'gift_card',
4
+ Package: 'package',
5
+ Custom: 'custom',
6
+ } as const;
7
+
8
+ export type PaymentMethodKind = (typeof PaymentMethodKind)[keyof typeof PaymentMethodKind];
9
+
10
+ export const PaymentMethodSource = {
11
+ System: 'system',
12
+ User: 'user',
13
+ } as const;
14
+
15
+ export type PaymentMethodSource = (typeof PaymentMethodSource)[keyof typeof PaymentMethodSource];
16
+
17
+ export const CustomPaymentMode = {
18
+ Upi: 'upi',
19
+ NetBanking: 'net_banking',
20
+ DebitCard: 'debit_card',
21
+ CreditCard: 'credit_card',
22
+ Card: 'card',
23
+ Cheque: 'cheque',
24
+ } as const;
25
+
26
+ export type CustomPaymentMode = (typeof CustomPaymentMode)[keyof typeof CustomPaymentMode];
27
+
28
+ export const CustomPaymentModeLabels: Record<CustomPaymentMode, string> = {
29
+ [CustomPaymentMode.Upi]: 'UPI',
30
+ [CustomPaymentMode.NetBanking]: 'Netbanking',
31
+ [CustomPaymentMode.DebitCard]: 'Debit Card',
32
+ [CustomPaymentMode.CreditCard]: 'Credit Card',
33
+ [CustomPaymentMode.Card]: 'Card',
34
+ [CustomPaymentMode.Cheque]: 'Cheque',
35
+ };
@@ -0,0 +1,19 @@
1
+ import type { CustomPaymentMode } from './payment-method.enums';
2
+
3
+ export interface CreatePaymentMethodRequest {
4
+ name: string;
5
+ paymentMode: CustomPaymentMode;
6
+ description?: string | null;
7
+ active?: boolean;
8
+ }
9
+
10
+ export interface UpdatePaymentMethodRequest {
11
+ name?: string;
12
+ paymentMode?: CustomPaymentMode;
13
+ description?: string | null;
14
+ active?: boolean;
15
+ }
16
+
17
+ export interface ReorderPaymentMethodsRequest {
18
+ paymentMethodIds: string[];
19
+ }
@@ -33,3 +33,19 @@ export type {
33
33
  ServiceVariantPriceOverrideInput,
34
34
  UpdateServiceRequest,
35
35
  } from './service.requests';
36
+ export {
37
+ ServiceImportBatchStatus,
38
+ ServiceImportRowImportStatus,
39
+ ServiceImportRowValidationStatus,
40
+ } from './service.import';
41
+ export type {
42
+ ImportPreviewRowsResult,
43
+ ListImportPreviewRowsQuery,
44
+ ServiceImportBatchDto,
45
+ ServiceImportDefinitionField,
46
+ ServiceImportDefinitions,
47
+ ServiceImportPreviewResponse,
48
+ ServiceImportPreviewRowDto,
49
+ ServiceImportRowPayload,
50
+ ServiceImportTemplateRequest,
51
+ } from './service.import';
@@ -0,0 +1,96 @@
1
+ import type { PaginatedResult } from '../pagination';
2
+
3
+ export const ServiceImportBatchStatus = {
4
+ Pending: 'pending',
5
+ Processing: 'processing',
6
+ Completed: 'completed',
7
+ Failed: 'failed',
8
+ } as const;
9
+
10
+ export type ServiceImportBatchStatus =
11
+ (typeof ServiceImportBatchStatus)[keyof typeof ServiceImportBatchStatus];
12
+
13
+ export const ServiceImportRowValidationStatus = {
14
+ Valid: 'valid',
15
+ Invalid: 'invalid',
16
+ } as const;
17
+
18
+ export type ServiceImportRowValidationStatus =
19
+ (typeof ServiceImportRowValidationStatus)[keyof typeof ServiceImportRowValidationStatus];
20
+
21
+ export const ServiceImportRowImportStatus = {
22
+ Pending: 'pending',
23
+ Imported: 'imported',
24
+ Skipped: 'skipped',
25
+ Failed: 'failed',
26
+ } as const;
27
+
28
+ export type ServiceImportRowImportStatus =
29
+ (typeof ServiceImportRowImportStatus)[keyof typeof ServiceImportRowImportStatus];
30
+
31
+ /** Parsed row from import spreadsheet (7 template columns). */
32
+ export interface ServiceImportRowPayload {
33
+ Name: string;
34
+ Category: string;
35
+ Duration: string;
36
+ Price: string;
37
+ 'Service For': string;
38
+ 'Online Booking'?: string | boolean;
39
+ Description?: string;
40
+ }
41
+
42
+ export interface ServiceImportPreviewRowDto extends ServiceImportRowPayload {
43
+ rowIndex: number;
44
+ issues?: string[];
45
+ }
46
+
47
+ export interface ServiceImportPreviewResponse {
48
+ batchId: string;
49
+ importBatchId: string;
50
+ fileName: string;
51
+ validCount: number;
52
+ invalidCount: number;
53
+ totalRows: number;
54
+ }
55
+
56
+ export interface ServiceImportBatchDto {
57
+ id: string;
58
+ importBatchId: string;
59
+ fileName: string;
60
+ status: ServiceImportBatchStatus;
61
+ totalRows: number;
62
+ validCount: number;
63
+ invalidCount: number;
64
+ importedCount: number;
65
+ failedCount: number;
66
+ processedCount: number;
67
+ progressPercent: number;
68
+ errorMessage?: string | null;
69
+ createdAt: string;
70
+ updatedAt?: string | null;
71
+ }
72
+
73
+ export interface ListImportPreviewRowsQuery {
74
+ kind: 'valid' | 'invalid';
75
+ page?: number;
76
+ pageSize?: number;
77
+ }
78
+
79
+ export type ImportPreviewRowsResult = PaginatedResult<ServiceImportPreviewRowDto>;
80
+
81
+ export interface ServiceImportDefinitionField {
82
+ required?: boolean;
83
+ type?: 'string' | 'number' | 'date' | 'phoneNumber';
84
+ examples?: Array<string | number>;
85
+ fieldDescription?: string;
86
+ allowedValues?: string[];
87
+ valueMap?: Record<string, string | boolean | number>;
88
+ headers?: string[];
89
+ }
90
+
91
+ export type ServiceImportDefinitions = Record<string, ServiceImportDefinitionField>;
92
+
93
+ export interface ServiceImportTemplateRequest {
94
+ importDefinitions: ServiceImportDefinitions;
95
+ templateName?: string;
96
+ }