@23blocks/angular 6.5.15 → 6.5.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/README.md +792 -0
  2. package/dist/{index.esm.js → fesm2022/23blocks-angular.mjs} +1620 -1286
  3. package/dist/fesm2022/23blocks-angular.mjs.map +1 -0
  4. package/dist/index.d.ts +3874 -1
  5. package/dist/index.d.ts.map +1 -0
  6. package/package.json +18 -19
  7. package/dist/src/index.d.ts +0 -2
  8. package/dist/src/index.d.ts.map +0 -1
  9. package/dist/src/lib/assets/assets.service.d.ts +0 -123
  10. package/dist/src/lib/assets/assets.service.d.ts.map +0 -1
  11. package/dist/src/lib/assets/index.d.ts +0 -2
  12. package/dist/src/lib/assets/index.d.ts.map +0 -1
  13. package/dist/src/lib/authentication/authentication.service.d.ts +0 -684
  14. package/dist/src/lib/authentication/authentication.service.d.ts.map +0 -1
  15. package/dist/src/lib/authentication/index.d.ts +0 -2
  16. package/dist/src/lib/authentication/index.d.ts.map +0 -1
  17. package/dist/src/lib/campaigns/campaigns.service.d.ts +0 -111
  18. package/dist/src/lib/campaigns/campaigns.service.d.ts.map +0 -1
  19. package/dist/src/lib/campaigns/index.d.ts +0 -2
  20. package/dist/src/lib/campaigns/index.d.ts.map +0 -1
  21. package/dist/src/lib/company/company.service.d.ts +0 -117
  22. package/dist/src/lib/company/company.service.d.ts.map +0 -1
  23. package/dist/src/lib/company/index.d.ts +0 -2
  24. package/dist/src/lib/company/index.d.ts.map +0 -1
  25. package/dist/src/lib/content/content.service.d.ts +0 -177
  26. package/dist/src/lib/content/content.service.d.ts.map +0 -1
  27. package/dist/src/lib/content/index.d.ts +0 -2
  28. package/dist/src/lib/content/index.d.ts.map +0 -1
  29. package/dist/src/lib/conversations/conversations.service.d.ts +0 -130
  30. package/dist/src/lib/conversations/conversations.service.d.ts.map +0 -1
  31. package/dist/src/lib/conversations/index.d.ts +0 -2
  32. package/dist/src/lib/conversations/index.d.ts.map +0 -1
  33. package/dist/src/lib/crm/crm.service.d.ts +0 -182
  34. package/dist/src/lib/crm/crm.service.d.ts.map +0 -1
  35. package/dist/src/lib/crm/index.d.ts +0 -2
  36. package/dist/src/lib/crm/index.d.ts.map +0 -1
  37. package/dist/src/lib/files/files.service.d.ts +0 -326
  38. package/dist/src/lib/files/files.service.d.ts.map +0 -1
  39. package/dist/src/lib/files/index.d.ts +0 -2
  40. package/dist/src/lib/files/index.d.ts.map +0 -1
  41. package/dist/src/lib/forms/forms.service.d.ts +0 -132
  42. package/dist/src/lib/forms/forms.service.d.ts.map +0 -1
  43. package/dist/src/lib/forms/index.d.ts +0 -2
  44. package/dist/src/lib/forms/index.d.ts.map +0 -1
  45. package/dist/src/lib/geolocation/geolocation.service.d.ts +0 -317
  46. package/dist/src/lib/geolocation/geolocation.service.d.ts.map +0 -1
  47. package/dist/src/lib/geolocation/index.d.ts +0 -2
  48. package/dist/src/lib/geolocation/index.d.ts.map +0 -1
  49. package/dist/src/lib/index.d.ts +0 -22
  50. package/dist/src/lib/index.d.ts.map +0 -1
  51. package/dist/src/lib/jarvis/index.d.ts +0 -2
  52. package/dist/src/lib/jarvis/index.d.ts.map +0 -1
  53. package/dist/src/lib/jarvis/jarvis.service.d.ts +0 -181
  54. package/dist/src/lib/jarvis/jarvis.service.d.ts.map +0 -1
  55. package/dist/src/lib/onboarding/index.d.ts +0 -2
  56. package/dist/src/lib/onboarding/index.d.ts.map +0 -1
  57. package/dist/src/lib/onboarding/onboarding.service.d.ts +0 -93
  58. package/dist/src/lib/onboarding/onboarding.service.d.ts.map +0 -1
  59. package/dist/src/lib/products/index.d.ts +0 -2
  60. package/dist/src/lib/products/index.d.ts.map +0 -1
  61. package/dist/src/lib/products/products.service.d.ts +0 -154
  62. package/dist/src/lib/products/products.service.d.ts.map +0 -1
  63. package/dist/src/lib/providers.d.ts +0 -97
  64. package/dist/src/lib/providers.d.ts.map +0 -1
  65. package/dist/src/lib/rewards/index.d.ts +0 -2
  66. package/dist/src/lib/rewards/index.d.ts.map +0 -1
  67. package/dist/src/lib/rewards/rewards.service.d.ts +0 -172
  68. package/dist/src/lib/rewards/rewards.service.d.ts.map +0 -1
  69. package/dist/src/lib/sales/index.d.ts +0 -2
  70. package/dist/src/lib/sales/index.d.ts.map +0 -1
  71. package/dist/src/lib/sales/sales.service.d.ts +0 -147
  72. package/dist/src/lib/sales/sales.service.d.ts.map +0 -1
  73. package/dist/src/lib/search/index.d.ts +0 -2
  74. package/dist/src/lib/search/index.d.ts.map +0 -1
  75. package/dist/src/lib/search/search.service.d.ts +0 -106
  76. package/dist/src/lib/search/search.service.d.ts.map +0 -1
  77. package/dist/src/lib/simple-providers.d.ts +0 -203
  78. package/dist/src/lib/simple-providers.d.ts.map +0 -1
  79. package/dist/src/lib/tokens.d.ts +0 -134
  80. package/dist/src/lib/tokens.d.ts.map +0 -1
  81. package/dist/src/lib/university/index.d.ts +0 -2
  82. package/dist/src/lib/university/index.d.ts.map +0 -1
  83. package/dist/src/lib/university/university.service.d.ts +0 -252
  84. package/dist/src/lib/university/university.service.d.ts.map +0 -1
  85. package/dist/src/lib/wallet/index.d.ts +0 -2
  86. package/dist/src/lib/wallet/index.d.ts.map +0 -1
  87. package/dist/src/lib/wallet/wallet.service.d.ts +0 -71
  88. package/dist/src/lib/wallet/wallet.service.d.ts.map +0 -1
@@ -1,93 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import type { Transport, PageResult } from '@23blocks/contracts';
3
- import { type OnboardingBlock, type OnboardingBlockConfig, type Onboarding, type CreateOnboardingRequest, type UpdateOnboardingRequest, type ListOnboardingsParams, type OnboardingStep, type AddStepRequest, type UpdateStepRequest, type Flow, type CreateFlowRequest, type UpdateFlowRequest, type ListFlowsParams, type UserJourney, type StartJourneyRequest, type CompleteStepRequest, type ListUserJourneysParams, type UserJourneyReportParams, type UserJourneyReportSummary, type UserJourneyReportList, type UserIdentity, type CreateUserIdentityRequest, type VerifyUserIdentityRequest, type ListUserIdentitiesParams, type OnboardJourney, type OnboardJourneyDetails, type StartOnboardRequest, type StepOnboardRequest, type LogOnboardRequest, type MailTemplate, type CreateMailTemplateRequest, type UpdateMailTemplateRequest, type ListMailTemplatesParams, type CreateMandrillTemplateRequest, type UpdateMandrillTemplateRequest, type MandrillTemplateStats, type AbandonedJourney, type ListAbandonedJourneysParams } from '@23blocks/block-onboarding';
4
- /**
5
- * Angular service wrapping the Onboarding block.
6
- * Converts Promise-based APIs to RxJS Observables.
7
- *
8
- * @example
9
- * ```typescript
10
- * @Component({...})
11
- * export class OnboardingComponent {
12
- * constructor(private onboarding: OnboardingService) {}
13
- *
14
- * createOnboarding() {
15
- * this.onboarding.createOnboarding({
16
- * code: 'user-onboarding',
17
- * name: 'User Onboarding',
18
- * steps: []
19
- * }).subscribe({
20
- * next: (onboarding) => console.log('Created:', onboarding),
21
- * error: (err) => console.error('Failed:', err),
22
- * });
23
- * }
24
- * }
25
- * ```
26
- */
27
- export declare class OnboardingService {
28
- private readonly block;
29
- constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: OnboardingBlockConfig);
30
- /**
31
- * Ensure the service is configured, throw helpful error if not
32
- */
33
- private ensureConfigured;
34
- listOnboardings(params?: ListOnboardingsParams): Observable<PageResult<Onboarding>>;
35
- getOnboarding(uniqueId: string): Observable<Onboarding>;
36
- createOnboarding(request: CreateOnboardingRequest): Observable<Onboarding>;
37
- updateOnboarding(uniqueId: string, request: UpdateOnboardingRequest): Observable<Onboarding>;
38
- deleteOnboarding(uniqueId: string): Observable<void>;
39
- addOnboardingStep(uniqueId: string, data: AddStepRequest): Observable<OnboardingStep>;
40
- updateOnboardingStep(uniqueId: string, stepUniqueId: string, data: UpdateStepRequest): Observable<OnboardingStep>;
41
- deleteOnboardingStep(uniqueId: string, stepUniqueId: string): Observable<void>;
42
- stepUser(uniqueId: string, userUniqueId: string, stepData?: Record<string, unknown>): Observable<Onboarding>;
43
- listFlows(params?: ListFlowsParams): Observable<PageResult<Flow>>;
44
- getFlow(uniqueId: string): Observable<Flow>;
45
- createFlow(request: CreateFlowRequest): Observable<Flow>;
46
- updateFlow(uniqueId: string, request: UpdateFlowRequest): Observable<Flow>;
47
- deleteFlow(uniqueId: string): Observable<void>;
48
- listFlowsByOnboarding(onboardingUniqueId: string): Observable<Flow[]>;
49
- getFlowBySource(uniqueId: string, sourceUniqueId: string): Observable<Flow>;
50
- stepFlowBySource(uniqueId: string, sourceUniqueId: string, stepData?: Record<string, unknown>): Observable<Flow>;
51
- listUserJourneys(params?: ListUserJourneysParams): Observable<PageResult<UserJourney>>;
52
- getUserJourney(uniqueId: string): Observable<UserJourney>;
53
- startJourney(request: StartJourneyRequest): Observable<UserJourney>;
54
- completeStep(uniqueId: string, request: CompleteStepRequest): Observable<UserJourney>;
55
- abandonJourney(uniqueId: string): Observable<UserJourney>;
56
- getJourneysByUser(userUniqueId: string): Observable<UserJourney[]>;
57
- getJourneyProgress(uniqueId: string): Observable<{
58
- progress: number;
59
- currentStep?: number;
60
- completedSteps?: number[];
61
- }>;
62
- listJourneyByUserAndOnboarding(userUniqueId: string, onboardingUniqueId: string): Observable<UserJourney>;
63
- reportJourneyList(params: UserJourneyReportParams): Observable<UserJourneyReportList>;
64
- reportJourneySummary(params: UserJourneyReportParams): Observable<UserJourneyReportSummary>;
65
- listUserIdentities(params?: ListUserIdentitiesParams): Observable<PageResult<UserIdentity>>;
66
- getUserIdentity(uniqueId: string): Observable<UserIdentity>;
67
- createUserIdentity(request: CreateUserIdentityRequest): Observable<UserIdentity>;
68
- verifyUserIdentity(uniqueId: string, request: VerifyUserIdentityRequest): Observable<UserIdentity>;
69
- deleteUserIdentity(uniqueId: string): Observable<void>;
70
- listIdentitiesByUser(userUniqueId: string): Observable<UserIdentity[]>;
71
- startOnboard(uniqueId: string, data?: StartOnboardRequest): Observable<OnboardJourney>;
72
- getOnboard(uniqueId: string): Observable<OnboardJourney>;
73
- getOnboardDetails(uniqueId: string): Observable<OnboardJourneyDetails>;
74
- stepOnboard(uniqueId: string, data: StepOnboardRequest): Observable<OnboardJourney>;
75
- logOnboard(uniqueId: string, data: LogOnboardRequest): Observable<OnboardJourney>;
76
- suspendOnboard(uniqueId: string): Observable<OnboardJourney>;
77
- resumeOnboard(uniqueId: string): Observable<OnboardJourney>;
78
- listMailTemplates(params?: ListMailTemplatesParams): Observable<PageResult<MailTemplate>>;
79
- getMailTemplate(uniqueId: string): Observable<MailTemplate>;
80
- createMailTemplate(data: CreateMailTemplateRequest): Observable<MailTemplate>;
81
- updateMailTemplate(uniqueId: string, data: UpdateMailTemplateRequest): Observable<MailTemplate>;
82
- getMandrillStats(uniqueId: string): Observable<MandrillTemplateStats>;
83
- createMandrillTemplate(uniqueId: string, data: CreateMandrillTemplateRequest): Observable<MailTemplate>;
84
- updateMandrillTemplate(uniqueId: string, data: UpdateMandrillTemplateRequest): Observable<MailTemplate>;
85
- publishMandrill(uniqueId: string): Observable<MailTemplate>;
86
- listAbandonedJourneys(params?: ListAbandonedJourneysParams): Observable<PageResult<AbandonedJourney>>;
87
- /**
88
- * Access the underlying block for advanced operations
89
- * Use this when you need access to services not wrapped by this Angular service
90
- */
91
- get onboardingBlock(): OnboardingBlock;
92
- }
93
- //# sourceMappingURL=onboarding.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"onboarding.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/onboarding/onboarding.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAE1B,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEtB,KAAK,IAAI,EACT,KAAK,iBAAiB,EAC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E,6BAA6B,GAAG,UAAU,CAAC,YAAY,CAAC;IAIvG,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC,YAAY,CAAC;IAQ3D,qBAAqB,CAAC,MAAM,CAAC,EAAE,2BAA2B,GAAG,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAQrG;;;OAGG;IACH,IAAI,eAAe,IAAI,eAAe,CAErC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from './products.service';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/products/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -1,154 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import type { Transport, PageResult } from '@23blocks/contracts';
3
- import { type ProductsBlock, type ProductsBlockConfig, type Product, type ProductVariation, type ProductImage, type ProductStock, type ProductReview, type CreateProductRequest, type UpdateProductRequest, type ListProductsParams, type CreateVariationRequest, type UpdateVariationRequest, type Cart, type CartDetail, type AddToCartRequest, type UpdateCartItemRequest, type UpdateCartRequest, type CheckoutRequest, type Category, type Brand, type Vendor, type Warehouse, type Channel, type Collection, type CreateCategoryRequest, type UpdateCategoryRequest, type CreateBrandRequest, type UpdateBrandRequest, type CreateVendorRequest, type UpdateVendorRequest, type CreateWarehouseRequest, type UpdateWarehouseRequest, type ListCategoriesParams, type ListVendorsParams, type ListWarehousesParams, type ProductSet, type CreateProductSetRequest, type UpdateProductSetRequest, type ListProductSetsParams, type ShoppingList, type CreateShoppingListRequest, type UpdateShoppingListRequest, type ListShoppingListsParams, type ProductPromotion, type CreateProductPromotionRequest, type UpdateProductPromotionRequest, type ListProductPromotionsParams, type ProductPrice, type CreateProductPriceRequest, type UpdateProductPriceRequest, type ListProductPricesParams, type ProductFilter, type CreateProductFilterRequest, type UpdateProductFilterRequest, type ListProductFiltersParams, type AddToMyCartRequest, type UpdateMyCartRequest, type AbandonedCart, type AbandonedCartsParams, type CreateVisitorRequest, type Visitor, type ProductVendor, type ListProductVendorsParams } from '@23blocks/block-products';
4
- /**
5
- * Angular service wrapping the Products block.
6
- * Converts Promise-based APIs to RxJS Observables.
7
- *
8
- * @example
9
- * ```typescript
10
- * @Component({...})
11
- * export class ProductsComponent {
12
- * constructor(private products: ProductsService) {}
13
- *
14
- * loadProducts() {
15
- * this.products.listProducts().subscribe({
16
- * next: (result) => console.log('Products:', result.data),
17
- * error: (err) => console.error('Failed:', err),
18
- * });
19
- * }
20
- * }
21
- * ```
22
- */
23
- export declare class ProductsService {
24
- private readonly block;
25
- constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: ProductsBlockConfig);
26
- /**
27
- * Ensure the service is configured, throw helpful error if not
28
- */
29
- private ensureConfigured;
30
- listProducts(params?: ListProductsParams): Observable<PageResult<Product>>;
31
- getProduct(uniqueId: string): Observable<Product>;
32
- createProduct(data: CreateProductRequest): Observable<Product>;
33
- updateProduct(uniqueId: string, data: UpdateProductRequest): Observable<Product>;
34
- deleteProduct(uniqueId: string): Observable<void>;
35
- recoverProduct(uniqueId: string): Observable<Product>;
36
- searchProducts(query: string, params?: ListProductsParams): Observable<PageResult<Product>>;
37
- listDeletedProducts(params?: ListProductsParams): Observable<PageResult<Product>>;
38
- listVariations(productUniqueId: string): Observable<ProductVariation[]>;
39
- getVariation(uniqueId: string): Observable<ProductVariation>;
40
- createVariation(data: CreateVariationRequest): Observable<ProductVariation>;
41
- updateVariation(uniqueId: string, data: UpdateVariationRequest): Observable<ProductVariation>;
42
- deleteVariation(uniqueId: string): Observable<void>;
43
- listImages(productUniqueId: string): Observable<ProductImage[]>;
44
- addImage(productUniqueId: string, imageUrl: string, isPrimary?: boolean): Observable<ProductImage>;
45
- deleteImage(uniqueId: string): Observable<void>;
46
- getStock(productUniqueId: string, vendorUniqueId?: string): Observable<ProductStock[]>;
47
- updateStock(productUniqueId: string, vendorUniqueId: string, warehouseUniqueId: string, quantity: number): Observable<ProductStock>;
48
- listReviews(productUniqueId: string): Observable<PageResult<ProductReview>>;
49
- addReview(productUniqueId: string, rating: number, title?: string, content?: string): Observable<ProductReview>;
50
- getCart(userUniqueId: string): Observable<Cart>;
51
- getOrCreateCart(userUniqueId: string): Observable<Cart>;
52
- updateCart(userUniqueId: string, data: UpdateCartRequest): Observable<Cart>;
53
- deleteCart(userUniqueId: string): Observable<void>;
54
- addCartItem(userUniqueId: string, item: AddToCartRequest): Observable<Cart>;
55
- updateCartItem(userUniqueId: string, productUniqueId: string, data: UpdateCartItemRequest): Observable<Cart>;
56
- removeCartItem(userUniqueId: string, productUniqueId: string): Observable<Cart>;
57
- getCartItems(userUniqueId: string): Observable<CartDetail[]>;
58
- checkout(userUniqueId: string, data?: CheckoutRequest): Observable<Cart>;
59
- orderCart(userUniqueId: string): Observable<{
60
- cart: Cart;
61
- orderUniqueId: string;
62
- }>;
63
- orderCartItem(userUniqueId: string, productUniqueId: string): Observable<{
64
- cart: Cart;
65
- orderUniqueId: string;
66
- }>;
67
- cancelCart(userUniqueId: string): Observable<Cart>;
68
- cancelCartItem(userUniqueId: string, productUniqueId: string): Observable<Cart>;
69
- listCategories(params?: ListCategoriesParams): Observable<PageResult<Category>>;
70
- getCategory(uniqueId: string): Observable<Category>;
71
- createCategory(data: CreateCategoryRequest): Observable<Category>;
72
- updateCategory(uniqueId: string, data: UpdateCategoryRequest): Observable<Category>;
73
- deleteCategory(uniqueId: string): Observable<void>;
74
- recoverCategory(uniqueId: string): Observable<Category>;
75
- getCategoryChildren(uniqueId: string): Observable<Category[]>;
76
- listBrands(page?: number, perPage?: number): Observable<PageResult<Brand>>;
77
- getBrand(uniqueId: string): Observable<Brand>;
78
- createBrand(data: CreateBrandRequest): Observable<Brand>;
79
- updateBrand(uniqueId: string, data: UpdateBrandRequest): Observable<Brand>;
80
- deleteBrand(uniqueId: string): Observable<void>;
81
- listVendors(params?: ListVendorsParams): Observable<PageResult<Vendor>>;
82
- getVendor(uniqueId: string): Observable<Vendor>;
83
- createVendor(data: CreateVendorRequest): Observable<Vendor>;
84
- updateVendor(uniqueId: string, data: UpdateVendorRequest): Observable<Vendor>;
85
- deleteVendor(uniqueId: string): Observable<void>;
86
- listWarehouses(params?: ListWarehousesParams): Observable<PageResult<Warehouse>>;
87
- getWarehouse(uniqueId: string): Observable<Warehouse>;
88
- createWarehouse(data: CreateWarehouseRequest): Observable<Warehouse>;
89
- updateWarehouse(uniqueId: string, data: UpdateWarehouseRequest): Observable<Warehouse>;
90
- deleteWarehouse(uniqueId: string): Observable<void>;
91
- listChannels(): Observable<Channel[]>;
92
- getChannel(uniqueId: string): Observable<Channel>;
93
- listCollections(): Observable<Collection[]>;
94
- getCollection(uniqueId: string): Observable<Collection>;
95
- listProductSets(params?: ListProductSetsParams): Observable<PageResult<ProductSet>>;
96
- getProductSet(uniqueId: string): Observable<ProductSet>;
97
- createProductSet(data: CreateProductSetRequest): Observable<ProductSet>;
98
- updateProductSet(uniqueId: string, data: UpdateProductSetRequest): Observable<ProductSet>;
99
- deleteProductSet(uniqueId: string): Observable<void>;
100
- listShoppingLists(params?: ListShoppingListsParams): Observable<PageResult<ShoppingList>>;
101
- getShoppingList(uniqueId: string): Observable<ShoppingList>;
102
- createShoppingList(data: CreateShoppingListRequest): Observable<ShoppingList>;
103
- updateShoppingList(uniqueId: string, data: UpdateShoppingListRequest): Observable<ShoppingList>;
104
- deleteShoppingList(uniqueId: string): Observable<void>;
105
- listProductPromotions(params?: ListProductPromotionsParams): Observable<PageResult<ProductPromotion>>;
106
- getProductPromotion(uniqueId: string): Observable<ProductPromotion>;
107
- createProductPromotion(data: CreateProductPromotionRequest): Observable<ProductPromotion>;
108
- updateProductPromotion(uniqueId: string, data: UpdateProductPromotionRequest): Observable<ProductPromotion>;
109
- deleteProductPromotion(uniqueId: string): Observable<void>;
110
- listProductPrices(params?: ListProductPricesParams): Observable<PageResult<ProductPrice>>;
111
- getProductPrice(uniqueId: string): Observable<ProductPrice>;
112
- createProductPrice(data: CreateProductPriceRequest): Observable<ProductPrice>;
113
- updateProductPrice(uniqueId: string, data: UpdateProductPriceRequest): Observable<ProductPrice>;
114
- deleteProductPrice(uniqueId: string): Observable<void>;
115
- listProductFilters(params?: ListProductFiltersParams): Observable<PageResult<ProductFilter>>;
116
- getProductFilter(uniqueId: string): Observable<ProductFilter>;
117
- createProductFilter(data: CreateProductFilterRequest): Observable<ProductFilter>;
118
- updateProductFilter(uniqueId: string, data: UpdateProductFilterRequest): Observable<ProductFilter>;
119
- deleteProductFilter(uniqueId: string): Observable<void>;
120
- listAddons(productUniqueId: string): Observable<Product[]>;
121
- addAddon(productUniqueId: string, addonProductUniqueId: string): Observable<void>;
122
- removeAddon(productUniqueId: string, addonUniqueId: string): Observable<void>;
123
- getMyCart(uniqueId: string): Observable<Cart>;
124
- createMyCart(): Observable<Cart>;
125
- updateMyCart(uniqueId: string, data: UpdateMyCartRequest): Observable<Cart>;
126
- addToMyCart(data: AddToMyCartRequest): Observable<Cart>;
127
- checkoutMyCart(uniqueId: string): Observable<Cart>;
128
- orderAllMyCart(uniqueId: string): Observable<Cart>;
129
- cancelAllMyCart(uniqueId: string): Observable<Cart>;
130
- deleteMyCart(uniqueId: string): Observable<void>;
131
- getAbandonedCarts(params?: AbandonedCartsParams): Observable<{
132
- carts: AbandonedCart[];
133
- total: number;
134
- }>;
135
- createVisitor(data: CreateVisitorRequest): Observable<Visitor>;
136
- /**
137
- * List vendors for a product
138
- */
139
- listProductVendors(productUniqueId: string, params?: ListProductVendorsParams): Observable<PageResult<ProductVendor>>;
140
- /**
141
- * Get the primary vendor for a product
142
- */
143
- getPrimaryProductVendor(productUniqueId: string): Observable<ProductVendor | null>;
144
- /**
145
- * Get available vendors for a product
146
- */
147
- getAvailableProductVendors(productUniqueId: string, params?: ListProductVendorsParams): Observable<PageResult<ProductVendor>>;
148
- /**
149
- * Access the underlying block for advanced operations
150
- * Use this when you need access to services not wrapped by this Angular service
151
- */
152
- get productsBlock(): ProductsBlock;
153
- }
154
- //# sourceMappingURL=products.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"products.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/products/products.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,YAAY,EACjB,KAAK,yBAAyB,E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O,CAAC;IAQ9D;;OAEG;IACH,kBAAkB,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,wBAAwB,GAAG,UAAU,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAIrH;;OAEG;IACH,uBAAuB,CAAC,eAAe,EAAE,MAAM,GAAG,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC;IAIlF;;OAEG;IACH,0BAA0B,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,wBAAwB,GAAG,UAAU,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAQ7H;;;OAGG;IACH,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
@@ -1,97 +0,0 @@
1
- import type { Provider, EnvironmentProviders } from '@angular/core';
2
- import type { Transport } from '@23blocks/contracts';
3
- import type { AuthenticationBlockConfig } from '@23blocks/block-authentication';
4
- import type { SearchBlockConfig } from '@23blocks/block-search';
5
- import type { ProductsBlockConfig } from '@23blocks/block-products';
6
- import type { CrmBlockConfig } from '@23blocks/block-crm';
7
- import type { ContentBlockConfig } from '@23blocks/block-content';
8
- import type { GeolocationBlockConfig } from '@23blocks/block-geolocation';
9
- import type { ConversationsBlockConfig } from '@23blocks/block-conversations';
10
- import type { FilesBlockConfig } from '@23blocks/block-files';
11
- import type { FormsBlockConfig } from '@23blocks/block-forms';
12
- import type { AssetsBlockConfig } from '@23blocks/block-assets';
13
- import type { CampaignsBlockConfig } from '@23blocks/block-campaigns';
14
- import type { CompanyBlockConfig } from '@23blocks/block-company';
15
- import type { RewardsBlockConfig } from '@23blocks/block-rewards';
16
- import type { SalesBlockConfig } from '@23blocks/block-sales';
17
- import type { WalletBlockConfig } from '@23blocks/block-wallet';
18
- import type { JarvisBlockConfig } from '@23blocks/block-jarvis';
19
- import type { OnboardingBlockConfig } from '@23blocks/block-onboarding';
20
- import type { UniversityBlockConfig } from '@23blocks/block-university';
21
- /**
22
- * Configuration for providing 23blocks services
23
- */
24
- export interface Provide23BlocksConfig {
25
- transport: Transport;
26
- authentication?: AuthenticationBlockConfig;
27
- search?: SearchBlockConfig;
28
- products?: ProductsBlockConfig;
29
- crm?: CrmBlockConfig;
30
- content?: ContentBlockConfig;
31
- geolocation?: GeolocationBlockConfig;
32
- conversations?: ConversationsBlockConfig;
33
- files?: FilesBlockConfig;
34
- forms?: FormsBlockConfig;
35
- assets?: AssetsBlockConfig;
36
- campaigns?: CampaignsBlockConfig;
37
- company?: CompanyBlockConfig;
38
- rewards?: RewardsBlockConfig;
39
- sales?: SalesBlockConfig;
40
- wallet?: WalletBlockConfig;
41
- jarvis?: JarvisBlockConfig;
42
- onboarding?: OnboardingBlockConfig;
43
- university?: UniversityBlockConfig;
44
- }
45
- /**
46
- * Provide 23blocks services for standalone Angular applications.
47
- *
48
- * @example
49
- * ```typescript
50
- * // app.config.ts
51
- * import { ApplicationConfig } from '@angular/core';
52
- * import { provide23Blocks } from '@23blocks/angular';
53
- * import { createHttpTransport } from '@23blocks/transport-http';
54
- *
55
- * const transport = createHttpTransport({
56
- * baseUrl: 'https://api.example.com',
57
- * headers: () => ({
58
- * 'Authorization': `Bearer ${localStorage.getItem('token')}`,
59
- * }),
60
- * });
61
- *
62
- * export const appConfig: ApplicationConfig = {
63
- * providers: [
64
- * provide23Blocks({
65
- * transport,
66
- * authentication: { apiKey: 'my-api-key' },
67
- * search: { apiKey: 'my-api-key' },
68
- * products: { apiKey: 'my-api-key' },
69
- * crm: { apiKey: 'my-api-key' },
70
- * }),
71
- * ],
72
- * };
73
- * ```
74
- */
75
- export declare function provide23Blocks(config: Provide23BlocksConfig): EnvironmentProviders;
76
- /**
77
- * Get providers array for NgModule-based applications.
78
- *
79
- * @example
80
- * ```typescript
81
- * // app.module.ts
82
- * import { NgModule } from '@angular/core';
83
- * import { get23BlocksProviders } from '@23blocks/angular';
84
- *
85
- * @NgModule({
86
- * providers: [
87
- * ...get23BlocksProviders({
88
- * transport,
89
- * authentication: { apiKey: 'my-api-key' },
90
- * }),
91
- * ],
92
- * })
93
- * export class AppModule {}
94
- * ```
95
- */
96
- export declare function get23BlocksProviders(config: Provide23BlocksConfig): Provider[];
97
- //# sourceMappingURL=providers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../src/lib/providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE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appingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/rewards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,172 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import type { Transport, PageResult } from '@23blocks/contracts';
3
- import { type RewardsBlock, type RewardsBlockConfig, type Reward, type RewardRedemption, type CreateRewardRequest, type UpdateRewardRequest, type ListRewardsParams, type RedeemRewardRequest, type Coupon, type CouponApplication, type CreateCouponRequest, type UpdateCouponRequest, type ListCouponsParams, type ValidateCouponRequest, type CouponValidationResult, type ApplyCouponRequest, type Loyalty, type LoyaltyTransaction, type AddPointsRequest, type RedeemPointsRequest, type ListTransactionsParams, type Badge, type UserBadge, type CreateBadgeRequest, type UpdateBadgeRequest, type ListBadgesParams, type AwardBadgeRequest, type ListUserBadgesParams, type CouponConfiguration, type CreateCouponConfigurationRequest, type UpdateCouponConfigurationRequest, type ListCouponConfigurationsParams, type OfferCode, type CreateOfferCodeRequest, type SendOfferCodeRequest, type RedeemOfferCodeRequest, type ExpirationRule, type CreateExpirationRuleRequest, type UpdateExpirationRuleRequest, type ListExpirationRulesParams, type RewardsCustomer, type CustomerRewardExpiration, type CustomerRewardHistory, type ListRewardsCustomersParams, type BadgeCategory, type CreateBadgeCategoryRequest, type MoneyRule, type CreateMoneyRuleRequest, type UpdateMoneyRuleRequest, type ProductRule, type CreateProductRuleRequest, type UpdateProductRuleRequest, type EventRule, type CreateEventRuleRequest, type UpdateEventRuleRequest } from '@23blocks/block-rewards';
4
- /**
5
- * Angular service wrapping the Rewards block.
6
- * Converts Promise-based APIs to RxJS Observables.
7
- *
8
- * @example
9
- * ```typescript
10
- * @Component({...})
11
- * export class RewardsComponent {
12
- * constructor(private rewards: RewardsService) {}
13
- *
14
- * listRewards() {
15
- * this.rewards.listRewards({ status: 'active' }).subscribe({
16
- * next: (result) => console.log('Rewards:', result.data),
17
- * error: (err) => console.error('Failed:', err),
18
- * });
19
- * }
20
- * }
21
- * ```
22
- */
23
- export declare class RewardsService {
24
- private readonly block;
25
- constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: RewardsBlockConfig);
26
- /**
27
- * Ensure the service is configured, throw helpful error if not
28
- */
29
- private ensureConfigured;
30
- listRewards(params?: ListRewardsParams): Observable<PageResult<Reward>>;
31
- getReward(uniqueId: string): Observable<Reward>;
32
- createReward(data: CreateRewardRequest): Observable<Reward>;
33
- updateReward(uniqueId: string, data: UpdateRewardRequest): Observable<Reward>;
34
- deleteReward(uniqueId: string): Observable<void>;
35
- redeemReward(data: RedeemRewardRequest): Observable<RewardRedemption>;
36
- listCoupons(params?: ListCouponsParams): Observable<PageResult<Coupon>>;
37
- getCoupon(uniqueId: string): Observable<Coupon>;
38
- getCouponByCode(code: string): Observable<Coupon>;
39
- createCoupon(data: CreateCouponRequest): Observable<Coupon>;
40
- updateCoupon(uniqueId: string, data: UpdateCouponRequest): Observable<Coupon>;
41
- deleteCoupon(uniqueId: string): Observable<void>;
42
- validateCoupon(data: ValidateCouponRequest): Observable<CouponValidationResult>;
43
- applyCoupon(data: ApplyCouponRequest): Observable<CouponApplication>;
44
- getLoyalty(uniqueId: string): Observable<Loyalty>;
45
- getLoyaltyByUser(userUniqueId: string): Observable<Loyalty>;
46
- addPoints(data: AddPointsRequest): Observable<LoyaltyTransaction>;
47
- redeemPoints(data: RedeemPointsRequest): Observable<LoyaltyTransaction>;
48
- getLoyaltyHistory(userUniqueId: string, params?: ListTransactionsParams): Observable<PageResult<LoyaltyTransaction>>;
49
- listBadges(params?: ListBadgesParams): Observable<PageResult<Badge>>;
50
- getBadge(uniqueId: string): Observable<Badge>;
51
- createBadge(data: CreateBadgeRequest): Observable<Badge>;
52
- updateBadge(uniqueId: string, data: UpdateBadgeRequest): Observable<Badge>;
53
- deleteBadge(uniqueId: string): Observable<void>;
54
- awardBadge(data: AwardBadgeRequest): Observable<UserBadge>;
55
- listUserBadges(userUniqueId: string, params?: ListUserBadgesParams): Observable<PageResult<UserBadge>>;
56
- listCouponConfigurations(params?: ListCouponConfigurationsParams): Observable<PageResult<CouponConfiguration>>;
57
- getCouponConfiguration(uniqueId: string): Observable<CouponConfiguration>;
58
- createCouponConfiguration(data: CreateCouponConfigurationRequest): Observable<CouponConfiguration>;
59
- updateCouponConfiguration(data: UpdateCouponConfigurationRequest): Observable<CouponConfiguration>;
60
- deleteCouponConfiguration(uniqueId: string): Observable<void>;
61
- listConfigurationCoupons(uniqueId: string): Observable<Coupon[]>;
62
- generateOneCoupon(uniqueId: string): Observable<Coupon>;
63
- generateBatchCoupons(uniqueId: string, count: number): Observable<Coupon[]>;
64
- voidBatchCoupons(uniqueId: string, batchId: string): Observable<void>;
65
- loadCoupons(uniqueId: string, codes: string[]): Observable<Coupon[]>;
66
- getOfferCode(code: string): Observable<OfferCode>;
67
- createOfferCode(data: CreateOfferCodeRequest): Observable<OfferCode>;
68
- sendOfferCode(data: SendOfferCodeRequest): Observable<OfferCode>;
69
- redeemOfferCode(data: RedeemOfferCodeRequest): Observable<OfferCode>;
70
- listExpirationRules(params?: ListExpirationRulesParams): Observable<PageResult<ExpirationRule>>;
71
- getExpirationRule(uniqueId: string): Observable<ExpirationRule>;
72
- createExpirationRule(data: CreateExpirationRuleRequest): Observable<ExpirationRule>;
73
- updateExpirationRule(uniqueId: string, data: UpdateExpirationRuleRequest): Observable<ExpirationRule>;
74
- deleteExpirationRule(uniqueId: string): Observable<void>;
75
- listRewardsCustomers(params?: ListRewardsCustomersParams): Observable<PageResult<RewardsCustomer>>;
76
- getRewardsCustomer(uniqueId: string): Observable<RewardsCustomer>;
77
- getCustomerLoyaltyTier(uniqueId: string): Observable<Loyalty>;
78
- getCustomerRewards(uniqueId: string): Observable<unknown>;
79
- getCustomerRewardExpirations(uniqueId: string): Observable<CustomerRewardExpiration[]>;
80
- getCustomerRewardHistory(uniqueId: string): Observable<CustomerRewardHistory[]>;
81
- getCustomerBadges(uniqueId: string): Observable<Badge[]>;
82
- getCustomerCoupons(uniqueId: string): Observable<Coupon[]>;
83
- getCustomerOfferCodes(uniqueId: string): Observable<OfferCode[]>;
84
- grantCustomerReward(uniqueId: string, points: number, reason?: string): Observable<RewardsCustomer>;
85
- updateCustomerExpiration(uniqueId: string, expirationDate: Date): Observable<RewardsCustomer>;
86
- /**
87
- * List badge categories with optional pagination
88
- */
89
- listBadgeCategories(page?: number, perPage?: number): Observable<PageResult<BadgeCategory>>;
90
- /**
91
- * Get a badge category by unique ID
92
- */
93
- getBadgeCategory(uniqueId: string): Observable<BadgeCategory>;
94
- /**
95
- * Create a new badge category
96
- */
97
- createBadgeCategory(data: CreateBadgeCategoryRequest): Observable<BadgeCategory>;
98
- /**
99
- * Update a badge category
100
- */
101
- updateBadgeCategory(uniqueId: string, data: Partial<CreateBadgeCategoryRequest>): Observable<BadgeCategory>;
102
- /**
103
- * Delete a badge category
104
- */
105
- deleteBadgeCategory(uniqueId: string): Observable<void>;
106
- /**
107
- * List money rules for a loyalty program
108
- */
109
- listMoneyRules(loyaltyUniqueId: string): Observable<MoneyRule[]>;
110
- /**
111
- * Get a money rule by unique ID
112
- */
113
- getMoneyRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<MoneyRule>;
114
- /**
115
- * Create a new money rule
116
- */
117
- createMoneyRule(loyaltyUniqueId: string, data: CreateMoneyRuleRequest): Observable<MoneyRule>;
118
- /**
119
- * Update a money rule
120
- */
121
- updateMoneyRule(loyaltyUniqueId: string, ruleUniqueId: string, data: UpdateMoneyRuleRequest): Observable<MoneyRule>;
122
- /**
123
- * Delete a money rule
124
- */
125
- deleteMoneyRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<void>;
126
- /**
127
- * List product rules for a loyalty program
128
- */
129
- listProductRules(loyaltyUniqueId: string): Observable<ProductRule[]>;
130
- /**
131
- * Get a product rule by unique ID
132
- */
133
- getProductRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<ProductRule>;
134
- /**
135
- * Create a new product rule
136
- */
137
- createProductRule(loyaltyUniqueId: string, data: CreateProductRuleRequest): Observable<ProductRule>;
138
- /**
139
- * Update a product rule
140
- */
141
- updateProductRule(loyaltyUniqueId: string, ruleUniqueId: string, data: UpdateProductRuleRequest): Observable<ProductRule>;
142
- /**
143
- * Delete a product rule
144
- */
145
- deleteProductRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<void>;
146
- /**
147
- * List event rules for a loyalty program
148
- */
149
- listEventRules(loyaltyUniqueId: string): Observable<EventRule[]>;
150
- /**
151
- * Get an event rule by unique ID
152
- */
153
- getEventRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<EventRule>;
154
- /**
155
- * Create a new event rule
156
- */
157
- createEventRule(loyaltyUniqueId: string, data: CreateEventRuleRequest): Observable<EventRule>;
158
- /**
159
- * Update an event rule
160
- */
161
- updateEventRule(loyaltyUniqueId: string, ruleUniqueId: string, data: UpdateEventRuleRequest): Observable<EventRule>;
162
- /**
163
- * Delete an event rule
164
- */
165
- deleteEventRule(loyaltyUniqueId: string, ruleUniqueId: string): Observable<void>;
166
- /**
167
- * Access the underlying block for advanced operations
168
- * Use this when you need access to services not wrapped by this Angular service
169
- */
170
- get rewardsBlock(): RewardsBlock;
171
- }
172
- //# sourceMappingURL=rewards.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rewards.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/rewards/rewards.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,MAAM,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AC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,UAAU,CAAC,SAAS,CAAC;IAIlF;;OAEG;IACH,eAAe,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,GAAG,UAAU,CAAC,SAAS,CAAC;IAI7F;;OAEG;IACH,eAAe,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,GAAG,UAAU,CAAC,SAAS,CAAC;IAInH;;OAEG;IACH,eAAe,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC;IAQhF;;;OAGG;IACH,IAAI,YAAY,IAAI,YAAY,CAE/B;CACF"}
@@ -1,2 +0,0 @@
1
- export { SalesService } from './sales.service';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/sales/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}