@actschurch/ccms-sdk 0.0.17 → 0.0.19

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 (138) hide show
  1. package/dist/core/HttpClient.d.ts.map +1 -1
  2. package/dist/core/HttpClient.js +6 -3
  3. package/dist/core/HttpClient.js.map +1 -1
  4. package/dist/models/identity/ModelView/AccountViewModels.d.ts +3 -0
  5. package/dist/models/identity/ModelView/AccountViewModels.d.ts.map +1 -1
  6. package/dist/models/orders/ModelView/OrderPaymentModelView.d.ts +14 -0
  7. package/dist/models/orders/ModelView/OrderPaymentModelView.d.ts.map +1 -1
  8. package/dist/models/orders/Order.d.ts +10 -0
  9. package/dist/models/orders/Order.d.ts.map +1 -1
  10. package/dist/models/orders/OrderLine.d.ts +4 -0
  11. package/dist/models/orders/OrderLine.d.ts.map +1 -1
  12. package/dist/models/system/SystemRevenue.d.ts +30 -0
  13. package/dist/models/system/SystemRevenue.d.ts.map +1 -0
  14. package/dist/models/system/SystemRevenue.js +2 -0
  15. package/dist/models/system/SystemRevenue.js.map +1 -0
  16. package/dist/models/system/VendorSystemSetting.d.ts +20 -0
  17. package/dist/models/system/VendorSystemSetting.d.ts.map +1 -0
  18. package/dist/models/system/VendorSystemSetting.js +2 -0
  19. package/dist/models/system/VendorSystemSetting.js.map +1 -0
  20. package/dist/models/system/index.d.ts +2 -0
  21. package/dist/models/system/index.d.ts.map +1 -1
  22. package/dist/models/system/index.js +2 -0
  23. package/dist/models/system/index.js.map +1 -1
  24. package/dist/models/vendorcatalog/ModelView/ProductStockStatusModelView.d.ts +8 -0
  25. package/dist/models/vendorcatalog/ModelView/ProductStockStatusModelView.d.ts.map +1 -1
  26. package/dist/models/vendorcatalog/ModelView/ShopEventCatalogModelView.d.ts +4 -0
  27. package/dist/models/vendorcatalog/ModelView/ShopEventCatalogModelView.d.ts.map +1 -1
  28. package/dist/models/vendorcatalog/ModelView/ShopEventProductModelView.d.ts +6 -0
  29. package/dist/models/vendorcatalog/ModelView/ShopEventProductModelView.d.ts.map +1 -1
  30. package/dist/models/vendorcatalog/ModelView/VendorProductAddOnModelView.d.ts +8 -0
  31. package/dist/models/vendorcatalog/ModelView/VendorProductAddOnModelView.d.ts.map +1 -1
  32. package/dist/models/vendorcatalog/ModelView/VendorProductDetailModelView.d.ts +8 -0
  33. package/dist/models/vendorcatalog/ModelView/VendorProductDetailModelView.d.ts.map +1 -1
  34. package/dist/models/vendorcatalog/ModelView/VendorProductVariantModelView.d.ts +10 -0
  35. package/dist/models/vendorcatalog/ModelView/VendorProductVariantModelView.d.ts.map +1 -1
  36. package/dist/models/vendors/ModelView/ShopVendorModelView.d.ts +2 -0
  37. package/dist/models/vendors/ModelView/ShopVendorModelView.d.ts.map +1 -1
  38. package/dist/models/vendors/ModelView/VendorLedgerModelView.d.ts +89 -0
  39. package/dist/models/vendors/ModelView/VendorLedgerModelView.d.ts.map +1 -0
  40. package/dist/models/vendors/ModelView/VendorLedgerModelView.js +8 -0
  41. package/dist/models/vendors/ModelView/VendorLedgerModelView.js.map +1 -0
  42. package/dist/models/vendors/ModelView/VendorPayoutModelView.d.ts +67 -0
  43. package/dist/models/vendors/ModelView/VendorPayoutModelView.d.ts.map +1 -0
  44. package/dist/models/vendors/ModelView/VendorPayoutModelView.js +8 -0
  45. package/dist/models/vendors/ModelView/VendorPayoutModelView.js.map +1 -0
  46. package/dist/models/vendors/ModelView/VendorStatementModelView.d.ts +55 -0
  47. package/dist/models/vendors/ModelView/VendorStatementModelView.d.ts.map +1 -0
  48. package/dist/models/vendors/ModelView/VendorStatementModelView.js +9 -0
  49. package/dist/models/vendors/ModelView/VendorStatementModelView.js.map +1 -0
  50. package/dist/models/vendors/ModelView/index.d.ts +3 -0
  51. package/dist/models/vendors/ModelView/index.d.ts.map +1 -1
  52. package/dist/models/vendors/ModelView/index.js +4 -0
  53. package/dist/models/vendors/ModelView/index.js.map +1 -1
  54. package/dist/models/vendors/VendorLedger.d.ts +17 -0
  55. package/dist/models/vendors/VendorLedger.d.ts.map +1 -0
  56. package/dist/models/vendors/VendorLedger.js +2 -0
  57. package/dist/models/vendors/VendorLedger.js.map +1 -0
  58. package/dist/models/vendors/VendorLedgerEntry.d.ts +21 -0
  59. package/dist/models/vendors/VendorLedgerEntry.d.ts.map +1 -0
  60. package/dist/models/vendors/VendorLedgerEntry.js +10 -0
  61. package/dist/models/vendors/VendorLedgerEntry.js.map +1 -0
  62. package/dist/models/vendors/VendorPayout.d.ts +27 -0
  63. package/dist/models/vendors/VendorPayout.d.ts.map +1 -0
  64. package/dist/models/vendors/VendorPayout.js +12 -0
  65. package/dist/models/vendors/VendorPayout.js.map +1 -0
  66. package/dist/models/vendors/VendorPayoutStatus.d.ts +14 -0
  67. package/dist/models/vendors/VendorPayoutStatus.d.ts.map +1 -0
  68. package/dist/models/vendors/VendorPayoutStatus.js +2 -0
  69. package/dist/models/vendors/VendorPayoutStatus.js.map +1 -0
  70. package/dist/models/vendors/index.d.ts +4 -0
  71. package/dist/models/vendors/index.d.ts.map +1 -1
  72. package/dist/models/vendors/index.js +4 -0
  73. package/dist/models/vendors/index.js.map +1 -1
  74. package/dist/react/hooks/services/useSystemServices.d.ts +9 -1
  75. package/dist/react/hooks/services/useSystemServices.d.ts.map +1 -1
  76. package/dist/react/hooks/services/useSystemServices.js +12 -0
  77. package/dist/react/hooks/services/useSystemServices.js.map +1 -1
  78. package/dist/react/hooks/services/useVendorsServices.d.ts +9 -1
  79. package/dist/react/hooks/services/useVendorsServices.d.ts.map +1 -1
  80. package/dist/react/hooks/services/useVendorsServices.js +12 -0
  81. package/dist/react/hooks/services/useVendorsServices.js.map +1 -1
  82. package/dist/services/procurements/ApproverPortalService.d.ts.map +1 -1
  83. package/dist/services/procurements/ApproverPortalService.js +2 -1
  84. package/dist/services/procurements/ApproverPortalService.js.map +1 -1
  85. package/dist/services/procurements/FinancePortalService.d.ts.map +1 -1
  86. package/dist/services/procurements/FinancePortalService.js +2 -1
  87. package/dist/services/procurements/FinancePortalService.js.map +1 -1
  88. package/dist/services/procurements/ProcurementDashboardService.d.ts.map +1 -1
  89. package/dist/services/procurements/ProcurementDashboardService.js +2 -1
  90. package/dist/services/procurements/ProcurementDashboardService.js.map +1 -1
  91. package/dist/services/procurements/SageCompanyService.d.ts.map +1 -1
  92. package/dist/services/procurements/SageCompanyService.js +2 -1
  93. package/dist/services/procurements/SageCompanyService.js.map +1 -1
  94. package/dist/services/procurements/SageItemService.d.ts +7 -0
  95. package/dist/services/procurements/SageItemService.d.ts.map +1 -1
  96. package/dist/services/procurements/SageItemService.js +12 -2
  97. package/dist/services/procurements/SageItemService.js.map +1 -1
  98. package/dist/services/procurements/SagePurchaseOrderService.d.ts.map +1 -1
  99. package/dist/services/procurements/SagePurchaseOrderService.js +2 -1
  100. package/dist/services/procurements/SagePurchaseOrderService.js.map +1 -1
  101. package/dist/services/procurements/StaffRequestPortalService.d.ts.map +1 -1
  102. package/dist/services/procurements/StaffRequestPortalService.js +2 -1
  103. package/dist/services/procurements/StaffRequestPortalService.js.map +1 -1
  104. package/dist/services/system/SystemRevenueService.d.ts +56 -0
  105. package/dist/services/system/SystemRevenueService.d.ts.map +1 -0
  106. package/dist/services/system/SystemRevenueService.js +79 -0
  107. package/dist/services/system/SystemRevenueService.js.map +1 -0
  108. package/dist/services/system/VendorSystemSettingsService.d.ts +68 -0
  109. package/dist/services/system/VendorSystemSettingsService.d.ts.map +1 -0
  110. package/dist/services/system/VendorSystemSettingsService.js +100 -0
  111. package/dist/services/system/VendorSystemSettingsService.js.map +1 -0
  112. package/dist/services/system/index.d.ts +6 -0
  113. package/dist/services/system/index.d.ts.map +1 -1
  114. package/dist/services/system/index.js +6 -0
  115. package/dist/services/system/index.js.map +1 -1
  116. package/dist/services/vendor-portal/VendorPortalProfileService.d.ts +16 -0
  117. package/dist/services/vendor-portal/VendorPortalProfileService.d.ts.map +1 -1
  118. package/dist/services/vendor-portal/VendorPortalProfileService.js +19 -0
  119. package/dist/services/vendor-portal/VendorPortalProfileService.js.map +1 -1
  120. package/dist/services/vendor-portal/index.d.ts +1 -1
  121. package/dist/services/vendor-portal/index.d.ts.map +1 -1
  122. package/dist/services/vendors/VendorLedgerService.d.ts +96 -0
  123. package/dist/services/vendors/VendorLedgerService.d.ts.map +1 -0
  124. package/dist/services/vendors/VendorLedgerService.js +142 -0
  125. package/dist/services/vendors/VendorLedgerService.js.map +1 -0
  126. package/dist/services/vendors/VendorPayoutService.d.ts +100 -0
  127. package/dist/services/vendors/VendorPayoutService.d.ts.map +1 -0
  128. package/dist/services/vendors/VendorPayoutService.js +154 -0
  129. package/dist/services/vendors/VendorPayoutService.js.map +1 -0
  130. package/dist/services/vendors/index.d.ts +8 -0
  131. package/dist/services/vendors/index.d.ts.map +1 -1
  132. package/dist/services/vendors/index.js +6 -0
  133. package/dist/services/vendors/index.js.map +1 -1
  134. package/dist/utils/object.d.ts +5 -0
  135. package/dist/utils/object.d.ts.map +1 -1
  136. package/dist/utils/object.js +45 -0
  137. package/dist/utils/object.js.map +1 -1
  138. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VendorSystemSettingsService.js","sourceRoot":"","sources":["../../../src/services/system/VendorSystemSettingsService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAMlD;;GAEG;AACH,MAAM,OAAO,2BAA4B,SAAQ,WAIhD;IAIC,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,2BAA2B,CAAC,oBAAoB;YACpF,QAAQ,EAAE,2BAA2B,CAAC,SAAS;YAC/C,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,QAAQ,CAAC,GAAW;QACxB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,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AAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACtD,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,6CAA6C,GAAG,EAAE,CAAC,CAAC;QACtE,CAAC;QACD,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,cAAc,CAAC,GAAW,EAAE,IAAkC;QAC5D,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAsB,GAAG,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;;AAjGuB,gDAAoB,GAAG,QAAQ,CAAC;AAChC,qCAAS,GAAG,4BAA4B,CAAC"}
@@ -14,6 +14,8 @@ export * from './RabbitMQManagementService';
14
14
  export * from './RedisManagementService';
15
15
  export * from './RabbitMQTestService';
16
16
  export * from './RedisTestService';
17
+ export { VendorSystemSettingsService } from './VendorSystemSettingsService';
18
+ export { SystemRevenueService } from './SystemRevenueService';
17
19
  import { SystemService } from './SystemService';
18
20
  import { ApiRequestLogService } from './ApiRequestLogService';
19
21
  import { QueryPerformanceLogService } from './QueryPerformanceLogService';
@@ -24,6 +26,8 @@ import { RabbitMQManagementService } from './RabbitMQManagementService';
24
26
  import { RedisManagementService } from './RedisManagementService';
25
27
  import { RabbitMQTestService } from './RabbitMQTestService';
26
28
  import { RedisTestService } from './RedisTestService';
29
+ import { VendorSystemSettingsService } from './VendorSystemSettingsService';
30
+ import { SystemRevenueService } from './SystemRevenueService';
27
31
  /**
28
32
  * System services collection interface
29
33
  */
@@ -38,6 +42,8 @@ export interface SystemServices {
38
42
  redisManagement: RedisManagementService;
39
43
  rabbitMQTest: RabbitMQTestService;
40
44
  redisTest: RedisTestService;
45
+ vendorSystemSettings: VendorSystemSettingsService;
46
+ systemRevenue: SystemRevenueService;
41
47
  }
42
48
  /**
43
49
  * Create all system services with shared configuration
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/system/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,oBAAoB,CAAC;IACpC,mBAAmB,EAAE,0BAA0B,CAAC;IAChD,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,aAAa,C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BAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,oBAAoB,CAAC;IACpC,mBAAmB,EAAE,0BAA0B,CAAC;IAChD,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,eAAe,CAAC;IAC1B,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C,eAAe,EAAE,sBAAsB,CAAC;IACxC,YAAY,EAAE,mBAAmB,CAAC;IAClC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,oBAAoB,EAAE,2BAA2B,CAAC;IAClD,aAAa,EAAE,oBAAoB,CAAC;CACrC;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,UAAU,EAChB,MAAM,CAAC,EAAE,aAAa,GACrB,cAAc,CAehB"}
@@ -13,6 +13,8 @@ export * from './RabbitMQManagementService';
13
13
  export * from './RedisManagementService';
14
14
  export * from './RabbitMQTestService';
15
15
  export * from './RedisTestService';
16
+ export { VendorSystemSettingsService } from './VendorSystemSettingsService';
17
+ export { SystemRevenueService } from './SystemRevenueService';
16
18
  // Service imports for factory
17
19
  import { SystemService } from './SystemService';
18
20
  import { ApiRequestLogService } from './ApiRequestLogService';
@@ -24,6 +26,8 @@ import { RabbitMQManagementService } from './RabbitMQManagementService';
24
26
  import { RedisManagementService } from './RedisManagementService';
25
27
  import { RabbitMQTestService } from './RabbitMQTestService';
26
28
  import { RedisTestService } from './RedisTestService';
29
+ import { VendorSystemSettingsService } from './VendorSystemSettingsService';
30
+ import { SystemRevenueService } from './SystemRevenueService';
27
31
  /**
28
32
  * Create all system services with shared configuration
29
33
  * @param http - HTTP client instance
@@ -42,6 +46,8 @@ export function createSystemServices(http, config) {
42
46
  redisManagement: new RedisManagementService(http, config),
43
47
  rabbitMQTest: new RabbitMQTestService(http, config),
44
48
  redisTest: new RedisTestService(http, config),
49
+ vendorSystemSettings: new VendorSystemSettingsService(http, config),
50
+ systemRevenue: new SystemRevenueService(http, config),
45
51
  };
46
52
  }
47
53
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/system/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,uCAAuC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AAEnC,8BAA8B;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,M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,EAAE,IAAI,mBAAmB,CAAC,IAAI,EAAE,MAAM,CAAC;QACnD,SAAS,EAAE,IAAI,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC;QAC7C,oBAAoB,EAAE,IAAI,2BAA2B,CAAC,IAAI,EAAE,MAAM,CAAC;QACnE,aAAa,EAAE,IAAI,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC;KACtD,CAAC;AACJ,CAAC"}
@@ -8,6 +8,14 @@ import { ResponseData } from '../../models/common/ResponseData';
8
8
  import { VendorDetailModelView } from '../../models/vendors';
9
9
  import { VendorPortalBaseService, VendorPortalServiceConfig } from './VendorPortalBaseService';
10
10
  import { VendorSummary } from './models/VendorSummary';
11
+ /**
12
+ * Response from the vendor context endpoint.
13
+ * Returns vendor IDs for the authenticated user without requiring X-Vendor-ID header.
14
+ */
15
+ export interface VendorContextResponse {
16
+ vendorIds: number[];
17
+ primaryVendorId: number | null;
18
+ }
11
19
  /**
12
20
  * Request model for updating vendor profile
13
21
  * Matches backend VendorProfileUpdateRequest
@@ -91,6 +99,14 @@ export declare class VendorPortalProfileService extends VendorPortalBaseService
91
99
  * Get the current vendor's summary (raw response)
92
100
  */
93
101
  getSummaryRaw(): Promise<ResponseData<VendorSummary>>;
102
+ /**
103
+ * Get the current user's vendor context (vendor IDs and primary vendor).
104
+ * This endpoint does NOT require X-Vendor-ID header — it resolves from
105
+ * the authenticated user's JWT claims and the UserVendors table.
106
+ * Used as a recovery mechanism when vendorId is lost from storage.
107
+ * GET /api/vendor-portal/context
108
+ */
109
+ getVendorContext(): Promise<VendorContextResponse>;
94
110
  /**
95
111
  * Submit vendor for review (transitions from Draft to Submitted)
96
112
  * POST /api/vendor-portal/profile/submit
@@ -1 +1 @@
1
- {"version":3,"file":"VendorPortalProfileService.d.ts","sourceRoot":"","sources":["../../../src/services/vendor-portal/VendorPortalProfileService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB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EG;IACH,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;IAI1E;;;OAGG;IACG,YAAY,IAAI,OAAO,CAAC,qBAAqB,CAAC;IAQpD;;OAEG;IACH,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;CAGhE"}
1
+ {"version":3,"file":"VendorPortalProfileService.d.ts","sourceRoot":"","sources":["../../../src/services/vendor-portal/VendorPortalProfileService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,oBAAoB;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,YAAY,CAAC,EAAE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I,OAAO,CAAC,qBAAqB,CAAC;IAcxD;;;OAGG;IACG,eAAe,IAAI,OAAO,CAAC,qBAAqB,CAAC;IAQvD;;OAEG;IACH,kBAAkB,IAAI,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;IAMlE;;;OAGG;IACG,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAQ7D;;OAEG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;IAIxE;;;OAGG;IACG,UAAU,IAAI,OAAO,CAAC,qBAAqB,CAAC;IAQlD;;OAEG;IACH,aAAa,IAAI,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;IAM7D;;;OAGG;IACG,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAQ/D;;OAEG;IACH,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;IAI1E;;;OAGG;IACG,YAAY,IAAI,OAAO,CAAC,qBAAqB,CAAC;IAQpD;;OAEG;IACH,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC;CAGhE"}
@@ -71,6 +71,25 @@ export class VendorPortalProfileService extends VendorPortalBaseService {
71
71
  getSummaryRaw() {
72
72
  return this.get('summary');
73
73
  }
74
+ // ==================== VENDOR CONTEXT (no X-Vendor-ID required) ====================
75
+ /**
76
+ * Get the current user's vendor context (vendor IDs and primary vendor).
77
+ * This endpoint does NOT require X-Vendor-ID header — it resolves from
78
+ * the authenticated user's JWT claims and the UserVendors table.
79
+ * Used as a recovery mechanism when vendorId is lost from storage.
80
+ * GET /api/vendor-portal/context
81
+ */
82
+ async getVendorContext() {
83
+ // Use http.get directly (not this.get) to bypass ensureVendorHeader()
84
+ // since this endpoint is specifically for when vendorId is unknown
85
+ const contextPath = `/${this.servicePath}/api/vendor-portal/context`;
86
+ console.log('[VendorPortalProfileService] getVendorContext - calling:', contextPath);
87
+ const response = await this.http.get(contextPath);
88
+ if (!response.data) {
89
+ throw new Error('Failed to retrieve vendor context');
90
+ }
91
+ return response.data;
92
+ }
74
93
  // ==================== SUBMIT FOR REVIEW ====================
75
94
  /**
76
95
  * Submit vendor for review (transitions from Draft to Submitted)
@@ -1 +1 @@
1
- {"version":3,"file":"VendorPortalProfileService.js","sourceRoot":"","sources":["../../../src/services/vendor-portal/VendorPortalProfileService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,uBAAuB,EAA6B,MAAM,2BAA2B,CAAC;AA4D/F;;;;GAIG;AACH,MAAM,OAAO,0BAA2B,SAAQ,uBAAuB;IAIrE,YAAY,IAAgB,EAAE,MAAkC;QAC9D,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,0BAA0B,CAAC,oBAAoB;YACnF,QAAQ,EAAE,MAAM,EAAE,QAAQ,IAAI,0BAA0B,CAAC,SAAS;YAClE,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,wDAAwD;IAExD;;;OAGG;IACH,KAAK,CAAC,UAAU;QACd,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QAC5C,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACvD,CAAC;QACD,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,GAAG,EAAyB,CAAC;IAC3C,CAAC;IAED,2DAA2D;IAE3D;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,IAAgC;QAClD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,C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AC,IAAI,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,MAAM,CAAwB,QAAQ,CAAC,CAAC;IACtD,CAAC;;AA7KuB,+CAAoB,GAAG,SAAS,CAAC;AACjC,oCAAS,GAAG,2BAA2B,CAAC"}
1
+ {"version":3,"file":"VendorPortalProfileService.js","sourceRoot":"","sources":["../../../src/services/vendor-portal/VendorPortalProfileService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,uBAAuB,EAA6B,MAAM,2BAA2B,CAAC;AAqE/F;;;;GAIG;AACH,MAAM,OAAO,0BAA2B,SAAQ,uBAAuB;IAIrE,YAAY,IAAgB,EAAE,MAAkC;QAC9D,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,0BAA0B,CAAC,oBAAoB;YACnF,QAAQ,EAAE,MAAM,EAAE,QAAQ,IAAI,0BAA0B,CAAC,SAAS;YAClE,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,wDAAwD;IAExD;;;OAGG;IACH,KAAK,CAAC,UAAU;QACd,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QAC5C,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACvD,CAAC;QACD,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,GAAG,EAAyB,CAAC;IAC3C,CAAC;IAED,2DAA2D;IAE3D;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,IAAgC;QAClD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACnB,MAAM,IAAI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,IAAI,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,GAAW;QACzB,OAAO,IAAI,CAAC,GAAG,CAAwB,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY;QAChB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAC9C,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC7C,CAAC;QACD,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,MAAM,CAAwB,QAAQ,CAAC,CAAC;IACtD,CAAC;;AAlMuB,+CAAoB,GAAG,SAAS,CAAC;AACjC,oCAAS,GAAG,2BAA2B,CAAC"}
@@ -16,7 +16,7 @@ import type { ServiceConfig } from '../types';
16
16
  export { VendorPortalBaseService } from './VendorPortalBaseService';
17
17
  export type { VendorPortalServiceConfig } from './VendorPortalBaseService';
18
18
  export { VendorPortalProfileService } from './VendorPortalProfileService';
19
- export type { UpdateVendorProfileRequest, UpdateBrandingRequest } from './VendorPortalProfileService';
19
+ export type { UpdateVendorProfileRequest, UpdateBrandingRequest, VendorContextResponse } from './VendorPortalProfileService';
20
20
  export { VendorPortalDocumentService } from './VendorPortalDocumentService';
21
21
  export type { CreateVendorDocumentRequest, UpdateVendorDocumentRequest } from './VendorPortalDocumentService';
22
22
  export { VendorPortalPaymentService } from './VendorPortalPaymentService';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/vendor-portal/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA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;IAC/B,kDAAkD;IAClD,SAAS,EAAE,2BAA2B,CAAC;IACvC,oDAAoD;IACpD,WAAW,EAAE,8BAA8B,CAAC;IAC5C,sDAAsD;IACtD,aAAa,EAAE,+BAA+B,CAAC;IAC/C,+DAA+D;IAC/D,sBAAsB,EAAE,uCAAuC,CAAC;IAChE,gEAAgE;IAChE,wBAAwB,EAAE,yCAAyC,CAAC;IACpE,iEAAiE;IACjE,MAAM,EAAE,wBAAwB,CAAC;IACjC;;;;OAIG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAChD;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,UAAU,EAChB,MAAM,CAAC,EAAE,aAAa,GACrB,oBAAoB,CAmFtB"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * VendorLedgerService
3
+ * Service for managing vendor financial ledgers
4
+ */
5
+ import { CrudService } from '../base/CrudService';
6
+ import type { HttpClient } from '../../core/HttpClient';
7
+ import type { ResponseData } from '../../models/common';
8
+ import type { ServiceConfig } from '../types';
9
+ import type { VendorLedger } from '../../models/vendors';
10
+ import type { VendorLedgerEntry } from '../../models/vendors';
11
+ import type { VendorStatementModelView } from '../../models/vendors';
12
+ /**
13
+ * Service for vendor ledger CRUD operations with vendor-specific queries
14
+ */
15
+ export declare class VendorLedgerService extends CrudService<VendorLedger, Partial<VendorLedger>, Partial<VendorLedger>> {
16
+ private static readonly DEFAULT_SERVICE_PATH;
17
+ private static readonly BASE_PATH;
18
+ constructor(http: HttpClient, config?: ServiceConfig);
19
+ /**
20
+ * Get all ledger records for a specific vendor
21
+ * @param vendorId - The vendor ID
22
+ * @returns Array of vendor ledgers
23
+ */
24
+ getByVendor(vendorId: number): Promise<VendorLedger[]>;
25
+ /**
26
+ * Get all ledger records for a specific vendor with full response
27
+ * @param vendorId - The vendor ID
28
+ * @returns ResponseData with array of vendor ledgers
29
+ */
30
+ getByVendorRaw(vendorId: number): Promise<ResponseData<VendorLedger[]>>;
31
+ /**
32
+ * Get a ledger statement for a vendor within a date range
33
+ * @param vendorId - The vendor ID
34
+ * @param from - Start date string
35
+ * @param to - End date string
36
+ * @returns Vendor statement with entries and summary totals
37
+ */
38
+ getStatement(vendorId: number, from: string, to: string): Promise<VendorStatementModelView>;
39
+ /**
40
+ * Get a ledger statement for a vendor within a date range with full response
41
+ * @param vendorId - The vendor ID
42
+ * @param from - Start date string
43
+ * @param to - End date string
44
+ * @returns ResponseData with vendor statement
45
+ */
46
+ getStatementRaw(vendorId: number, from: string, to: string): Promise<ResponseData<VendorStatementModelView>>;
47
+ /**
48
+ * Credit a vendor's ledger
49
+ * @param vendorId - The vendor ID
50
+ * @param data - Credit data
51
+ * @returns The created ledger entry
52
+ */
53
+ creditVendor(vendorId: number, data: Partial<VendorLedgerEntry>): Promise<VendorLedgerEntry>;
54
+ /**
55
+ * Credit a vendor's ledger with full response
56
+ * @param vendorId - The vendor ID
57
+ * @param data - Credit data
58
+ * @returns ResponseData with the created ledger entry
59
+ */
60
+ creditVendorRaw(vendorId: number, data: Partial<VendorLedgerEntry>): Promise<ResponseData<VendorLedgerEntry>>;
61
+ /**
62
+ * Get all vendor ledgers as model views
63
+ * @returns Array of vendor ledger views
64
+ */
65
+ getViews(): Promise<VendorLedger[]>;
66
+ /**
67
+ * Get all vendor ledgers as model views with full response
68
+ * @returns ResponseData with array of vendor ledger views
69
+ */
70
+ getViewsRaw(): Promise<ResponseData<VendorLedger[]>>;
71
+ /**
72
+ * Get vendor ledger model view by ID
73
+ * @param id - Ledger ID
74
+ * @returns The vendor ledger view
75
+ */
76
+ getView(id: number): Promise<VendorLedger>;
77
+ /**
78
+ * Get vendor ledger model view by ID with full response
79
+ * @param id - Ledger ID
80
+ * @returns ResponseData with vendor ledger view
81
+ */
82
+ getViewRaw(id: number): Promise<ResponseData<VendorLedger>>;
83
+ /**
84
+ * Get all ledger model views for a specific vendor
85
+ * @param vendorId - Vendor ID
86
+ * @returns Array of vendor ledger views
87
+ */
88
+ getViewsByVendor(vendorId: number): Promise<VendorLedger[]>;
89
+ /**
90
+ * Get all ledger model views for a specific vendor with full response
91
+ * @param vendorId - Vendor ID
92
+ * @returns ResponseData with array of vendor ledger views
93
+ */
94
+ getViewsByVendorRaw(vendorId: number): Promise<ResponseData<VendorLedger[]>>;
95
+ }
96
+ //# sourceMappingURL=VendorLedgerService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VendorLedgerService.d.ts","sourceRoot":"","sources":["../../../src/services/vendors/VendorLedgerService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAErE;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW,CAClD,YAAY,EACZ,OAAO,CAAC,YAAY,CAAC,EACrB,OAAO,CAAC,YAAY,CAAC,CACtB;IACC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAa;IACzD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAwB;gBAE7C,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa;IAQpD;;;;OAIG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAK5D;;;;OAIG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAA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Service } from '../base/CrudService';
6
+ /**
7
+ * Service for vendor ledger CRUD operations with vendor-specific queries
8
+ */
9
+ export class VendorLedgerService extends CrudService {
10
+ constructor(http, config) {
11
+ super(http, {
12
+ servicePath: config?.servicePath ?? VendorLedgerService.DEFAULT_SERVICE_PATH,
13
+ basePath: VendorLedgerService.BASE_PATH,
14
+ endpoints: config?.endpoints,
15
+ });
16
+ }
17
+ /**
18
+ * Get all ledger records for a specific vendor
19
+ * @param vendorId - The vendor ID
20
+ * @returns Array of vendor ledgers
21
+ */
22
+ async getByVendor(vendorId) {
23
+ const response = await this.getByVendorRaw(vendorId);
24
+ return response.data ?? [];
25
+ }
26
+ /**
27
+ * Get all ledger records for a specific vendor with full response
28
+ * @param vendorId - The vendor ID
29
+ * @returns ResponseData with array of vendor ledgers
30
+ */
31
+ getByVendorRaw(vendorId) {
32
+ const url = this.buildUrl(`vendor/${vendorId}`);
33
+ return this.http.get(url);
34
+ }
35
+ /**
36
+ * Get a ledger statement for a vendor within a date range
37
+ * @param vendorId - The vendor ID
38
+ * @param from - Start date string
39
+ * @param to - End date string
40
+ * @returns Vendor statement with entries and summary totals
41
+ */
42
+ async getStatement(vendorId, from, to) {
43
+ const response = await this.getStatementRaw(vendorId, from, to);
44
+ if (!response.data) {
45
+ throw new Error(`Failed to retrieve statement for vendor: vendorId=${vendorId}`);
46
+ }
47
+ return response.data;
48
+ }
49
+ /**
50
+ * Get a ledger statement for a vendor within a date range with full response
51
+ * @param vendorId - The vendor ID
52
+ * @param from - Start date string
53
+ * @param to - End date string
54
+ * @returns ResponseData with vendor statement
55
+ */
56
+ getStatementRaw(vendorId, from, to) {
57
+ const url = this.buildUrl(`vendor/${vendorId}/statement?from=${from}&to=${to}`);
58
+ return this.http.get(url);
59
+ }
60
+ /**
61
+ * Credit a vendor's ledger
62
+ * @param vendorId - The vendor ID
63
+ * @param data - Credit data
64
+ * @returns The created ledger entry
65
+ */
66
+ async creditVendor(vendorId, data) {
67
+ const response = await this.creditVendorRaw(vendorId, data);
68
+ if (!response.data) {
69
+ throw new Error(`Failed to credit vendor ledger: vendorId=${vendorId}`);
70
+ }
71
+ return response.data;
72
+ }
73
+ /**
74
+ * Credit a vendor's ledger with full response
75
+ * @param vendorId - The vendor ID
76
+ * @param data - Credit data
77
+ * @returns ResponseData with the created ledger entry
78
+ */
79
+ creditVendorRaw(vendorId, data) {
80
+ const url = this.buildUrl(`vendor/${vendorId}/credit`);
81
+ return this.http.post(url, data);
82
+ }
83
+ // ==================== MODEL VIEW QUERIES ====================
84
+ /**
85
+ * Get all vendor ledgers as model views
86
+ * @returns Array of vendor ledger views
87
+ */
88
+ async getViews() {
89
+ const response = await this.getViewsRaw();
90
+ return response.data ?? [];
91
+ }
92
+ /**
93
+ * Get all vendor ledgers as model views with full response
94
+ * @returns ResponseData with array of vendor ledger views
95
+ */
96
+ getViewsRaw() {
97
+ const url = this.buildUrl('views');
98
+ return this.http.get(url);
99
+ }
100
+ /**
101
+ * Get vendor ledger model view by ID
102
+ * @param id - Ledger ID
103
+ * @returns The vendor ledger view
104
+ */
105
+ async getView(id) {
106
+ const response = await this.getViewRaw(id);
107
+ if (!response.data) {
108
+ throw new Error(`VendorLedger view not found: id=${id}`);
109
+ }
110
+ return response.data;
111
+ }
112
+ /**
113
+ * Get vendor ledger model view by ID with full response
114
+ * @param id - Ledger ID
115
+ * @returns ResponseData with vendor ledger view
116
+ */
117
+ getViewRaw(id) {
118
+ const url = this.buildUrl(`${id}/view`);
119
+ return this.http.get(url);
120
+ }
121
+ /**
122
+ * Get all ledger model views for a specific vendor
123
+ * @param vendorId - Vendor ID
124
+ * @returns Array of vendor ledger views
125
+ */
126
+ async getViewsByVendor(vendorId) {
127
+ const response = await this.getViewsByVendorRaw(vendorId);
128
+ return response.data ?? [];
129
+ }
130
+ /**
131
+ * Get all ledger model views for a specific vendor with full response
132
+ * @param vendorId - Vendor ID
133
+ * @returns ResponseData with array of vendor ledger views
134
+ */
135
+ getViewsByVendorRaw(vendorId) {
136
+ const url = this.buildUrl(`vendor/${vendorId}/views`);
137
+ return this.http.get(url);
138
+ }
139
+ }
140
+ VendorLedgerService.DEFAULT_SERVICE_PATH = 'vendors';
141
+ VendorLedgerService.BASE_PATH = 'api/vendor-ledgers';
142
+ //# sourceMappingURL=VendorLedgerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VendorLedgerService.js","sourceRoot":"","sources":["../../../src/services/vendors/VendorLedgerService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAQlD;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,WAIxC;IAIC,YAAY,IAAgB,EAAE,MAAsB;QAClD,KAAK,CAAC,IAAI,EAAE;YACV,WAAW,EAAE,MAAM,EAAE,WAAW,IAAI,mBAAmB,CAAC,oBAAoB;YAC5E,QAAQ,EAAE,mBAAmB,CAAC,SAAS;YACvC,SAAS,EAAE,MAAM,EAAE,SAAS;SAC7B,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,WAAW,CAAC,QAAgB;QAChC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;QACrD,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,QAAgB;QAC7B,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,QAAQ,EAAE,CAAC,CAAC;QAChD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAiB,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,YAAY,CAAC,QAAgB,EAAE,IAAY,EAAE,EAAU;QAC3D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAChE,IAAI,CAAC,QAAQ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,IAAI,CAAC,IAAI,CAAC,GAAG,CAAiB,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,OAAO,CAAC,EAAU;QACtB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,mCAAmC,EAAE,EAAE,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,EAAU;QACnB,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAe,GAAG,CAAC,CAAC;IAC1C,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,gBAAgB,CAAC,QAAgB;QACrC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QAC1D,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACH,mBAAmB,CAAC,QAAgB;QAClC,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,QAAQ,QAAQ,CAAC,CAAC;QACtD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAiB,GAAG,CAAC,CAAC;IAC5C,CAAC;;AAhJuB,wCAAoB,GAAG,SAAS,CAAC;AACjC,6BAAS,GAAG,oBAAoB,CAAC"}
@@ -0,0 +1,100 @@
1
+ /**
2
+ * VendorPayoutService
3
+ * Service for managing vendor payouts
4
+ */
5
+ import { CrudService } from '../base/CrudService';
6
+ import type { HttpClient } from '../../core/HttpClient';
7
+ import type { ResponseData } from '../../models/common';
8
+ import type { ServiceConfig } from '../types';
9
+ import type { VendorPayout } from '../../models/vendors';
10
+ /**
11
+ * Service for vendor payout CRUD operations with vendor-specific queries
12
+ */
13
+ export declare class VendorPayoutService extends CrudService<VendorPayout, Partial<VendorPayout>, Partial<VendorPayout>> {
14
+ private static readonly DEFAULT_SERVICE_PATH;
15
+ private static readonly BASE_PATH;
16
+ constructor(http: HttpClient, config?: ServiceConfig);
17
+ /**
18
+ * Get all payout records for a specific vendor
19
+ * @param vendorId - The vendor ID
20
+ * @returns Array of vendor payouts
21
+ */
22
+ getByVendor(vendorId: number): Promise<VendorPayout[]>;
23
+ /**
24
+ * Get all payout records for a specific vendor with full response
25
+ * @param vendorId - The vendor ID
26
+ * @returns ResponseData with array of vendor payouts
27
+ */
28
+ getByVendorRaw(vendorId: number): Promise<ResponseData<VendorPayout[]>>;
29
+ /**
30
+ * Get all pending payouts
31
+ * @returns Array of pending vendor payouts
32
+ */
33
+ getPending(): Promise<VendorPayout[]>;
34
+ /**
35
+ * Get all pending payouts with full response
36
+ * @returns ResponseData with array of pending vendor payouts
37
+ */
38
+ getPendingRaw(): Promise<ResponseData<VendorPayout[]>>;
39
+ /**
40
+ * Process a payout for a vendor
41
+ * @param vendorId - The vendor ID
42
+ * @returns The processed payout
43
+ */
44
+ processPayout(vendorId: number): Promise<VendorPayout>;
45
+ /**
46
+ * Process a payout for a vendor with full response
47
+ * @param vendorId - The vendor ID
48
+ * @returns ResponseData with the processed payout
49
+ */
50
+ processPayoutRaw(vendorId: number): Promise<ResponseData<VendorPayout>>;
51
+ /**
52
+ * Update the status of a payout
53
+ * @param payoutId - The payout ID
54
+ * @param statusId - The new status ID
55
+ * @returns The updated payout
56
+ */
57
+ updateStatus(payoutId: number, statusId: number): Promise<VendorPayout>;
58
+ /**
59
+ * Update the status of a payout with full response
60
+ * @param payoutId - The payout ID
61
+ * @param statusId - The new status ID
62
+ * @returns ResponseData with the updated payout
63
+ */
64
+ updateStatusRaw(payoutId: number, statusId: number): Promise<ResponseData<VendorPayout>>;
65
+ /**
66
+ * Get all vendor payouts as model views
67
+ * @returns Array of vendor payout views
68
+ */
69
+ getViews(): Promise<VendorPayout[]>;
70
+ /**
71
+ * Get all vendor payouts as model views with full response
72
+ * @returns ResponseData with array of vendor payout views
73
+ */
74
+ getViewsRaw(): Promise<ResponseData<VendorPayout[]>>;
75
+ /**
76
+ * Get vendor payout model view by ID
77
+ * @param id - Payout ID
78
+ * @returns The vendor payout view
79
+ */
80
+ getView(id: number): Promise<VendorPayout>;
81
+ /**
82
+ * Get vendor payout model view by ID with full response
83
+ * @param id - Payout ID
84
+ * @returns ResponseData with vendor payout view
85
+ */
86
+ getViewRaw(id: number): Promise<ResponseData<VendorPayout>>;
87
+ /**
88
+ * Get all payout model views for a specific vendor
89
+ * @param vendorId - Vendor ID
90
+ * @returns Array of vendor payout views
91
+ */
92
+ getViewsByVendor(vendorId: number): Promise<VendorPayout[]>;
93
+ /**
94
+ * Get all payout model views for a specific vendor with full response
95
+ * @param vendorId - Vendor ID
96
+ * @returns ResponseData with array of vendor payout views
97
+ */
98
+ getViewsByVendorRaw(vendorId: number): Promise<ResponseData<VendorPayout[]>>;
99
+ }
100
+ //# sourceMappingURL=VendorPayoutService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VendorPayoutService.d.ts","sourceRoot":"","sources":["../../../src/services/vendors/VendorPayoutService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW,CAClD,YAAY,EACZ,OAAO,CAAC,YAAY,CAAC,EACrB,OAAO,CAAC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