@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,147 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import type { Transport, PageResult } from '@23blocks/contracts';
3
- import { type SalesBlock, type SalesBlockConfig, type Order, type CreateOrderRequest, type UpdateOrderRequest, type ListOrdersParams, type OrderDetail, type UpdateOrderDetailRequest, type Payment, type CreatePaymentRequest, type ListPaymentsParams, type Subscription, type CreateSubscriptionRequest, type UpdateSubscriptionRequest, type ListSubscriptionsParams, type OrderTax, type CreateOrderTaxRequest, type UpdateOrderTaxRequest, type SubscriptionModel, type CreateSubscriptionModelRequest, type UpdateSubscriptionModelRequest, type ListSubscriptionModelsParams, type SalesEntity, type RegisterSalesEntityRequest, type UpdateSalesEntityRequest, type ListSalesEntitiesParams, type EntitySubscription, type CreateEntitySubscriptionRequest, type UpdateEntitySubscriptionRequest, type SalesUser, type RegisterSalesUserRequest, type UpdateSalesUserRequest, type ListSalesUsersParams, type UserSubscription, type CreateUserSubscriptionRequest, type UpdateUserSubscriptionRequest, type SalesCustomer, type CreateSalesCustomerRequest, type UpdateSalesCustomerRequest, type ListSalesCustomersParams, type FlexibleOrder, type CreateFlexibleOrderRequest, type UpdateFlexibleOrderRequest, type ListFlexibleOrdersParams, type VendorPayment, type CreateVendorPaymentRequest, type UpdateVendorPaymentRequest, type ListVendorPaymentsParams, type CreateStripeCustomerRequest, type CreateStripeCustomerResponse, type StripeCheckoutSession, type CreateStripeCheckoutSessionRequest, type StripePaymentIntent, type CreateStripePaymentIntentRequest, type StripeSubscription, type CreateStripeSubscriptionRequest, type UpdateStripeSubscriptionRequest, type StripeCustomerPortalSession, type CreateStripeCustomerPortalRequest, type StripeWebhook, type CreateStripeWebhookRequest, type ListStripeSubscriptionsParams, type MercadoPagoPaymentMethod, type MercadoPagoPaymentIntent, type CreateMercadoPagoPaymentRequest, type CreateMercadoPagoPSERequest } from '@23blocks/block-sales';
4
- /**
5
- * Angular service wrapping the Sales block.
6
- * Converts Promise-based APIs to RxJS Observables.
7
- *
8
- * @example
9
- * ```typescript
10
- * @Component({...})
11
- * export class CheckoutComponent {
12
- * constructor(private sales: SalesService) {}
13
- *
14
- * createOrder(items: any[]) {
15
- * this.sales.createOrder({ userUniqueId: '123', items }).subscribe({
16
- * next: (order) => console.log('Order created:', order),
17
- * error: (err) => console.error('Failed:', err),
18
- * });
19
- * }
20
- * }
21
- * ```
22
- */
23
- export declare class SalesService {
24
- private readonly block;
25
- constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: SalesBlockConfig);
26
- /**
27
- * Ensure the service is configured, throw helpful error if not
28
- */
29
- private ensureConfigured;
30
- listOrders(params?: ListOrdersParams): Observable<PageResult<Order>>;
31
- getOrder(uniqueId: string): Observable<Order>;
32
- createOrder(data: CreateOrderRequest): Observable<Order>;
33
- updateOrder(uniqueId: string, data: UpdateOrderRequest): Observable<Order>;
34
- cancelOrder(uniqueId: string): Observable<Order>;
35
- confirmOrder(uniqueId: string): Observable<Order>;
36
- shipOrder(uniqueId: string, trackingNumber?: string): Observable<Order>;
37
- deliverOrder(uniqueId: string): Observable<Order>;
38
- listOrdersByUser(userUniqueId: string, params?: ListOrdersParams): Observable<PageResult<Order>>;
39
- listOrderDetails(): Observable<OrderDetail[]>;
40
- getOrderDetail(uniqueId: string): Observable<OrderDetail>;
41
- updateOrderDetail(uniqueId: string, data: UpdateOrderDetailRequest): Observable<OrderDetail>;
42
- listOrderDetailsByOrder(orderUniqueId: string): Observable<OrderDetail[]>;
43
- listPayments(params?: ListPaymentsParams): Observable<PageResult<Payment>>;
44
- getPayment(uniqueId: string): Observable<Payment>;
45
- createPayment(data: CreatePaymentRequest): Observable<Payment>;
46
- refundPayment(uniqueId: string, amount?: number): Observable<Payment>;
47
- listPaymentsByOrder(orderUniqueId: string): Observable<Payment[]>;
48
- listSubscriptions(params?: ListSubscriptionsParams): Observable<PageResult<Subscription>>;
49
- getSubscription(uniqueId: string): Observable<Subscription>;
50
- createSubscription(data: CreateSubscriptionRequest): Observable<Subscription>;
51
- updateSubscription(uniqueId: string, data: UpdateSubscriptionRequest): Observable<Subscription>;
52
- cancelSubscription(uniqueId: string): Observable<Subscription>;
53
- pauseSubscription(uniqueId: string): Observable<Subscription>;
54
- resumeSubscription(uniqueId: string): Observable<Subscription>;
55
- listSubscriptionsByUser(userUniqueId: string, params?: ListSubscriptionsParams): Observable<PageResult<Subscription>>;
56
- listOrderTaxes(orderUniqueId: string): Observable<OrderTax[]>;
57
- getOrderTax(orderUniqueId: string, uniqueId: string): Observable<OrderTax>;
58
- createOrderTax(orderUniqueId: string, data: CreateOrderTaxRequest): Observable<OrderTax>;
59
- updateOrderTax(orderUniqueId: string, uniqueId: string, data: UpdateOrderTaxRequest): Observable<OrderTax>;
60
- deleteOrderTax(orderUniqueId: string, uniqueId: string): Observable<void>;
61
- listSubscriptionModels(params?: ListSubscriptionModelsParams): Observable<PageResult<SubscriptionModel>>;
62
- getSubscriptionModel(uniqueId: string): Observable<SubscriptionModel>;
63
- createSubscriptionModel(data: CreateSubscriptionModelRequest): Observable<SubscriptionModel>;
64
- updateSubscriptionModel(uniqueId: string, data: UpdateSubscriptionModelRequest): Observable<SubscriptionModel>;
65
- listSalesEntities(params?: ListSalesEntitiesParams): Observable<PageResult<SalesEntity>>;
66
- getSalesEntity(uniqueId: string): Observable<SalesEntity>;
67
- registerSalesEntity(uniqueId: string, data?: RegisterSalesEntityRequest): Observable<SalesEntity>;
68
- updateSalesEntity(uniqueId: string, data: UpdateSalesEntityRequest): Observable<SalesEntity>;
69
- createEntitySubscription(uniqueId: string, data: CreateEntitySubscriptionRequest): Observable<EntitySubscription>;
70
- updateEntitySubscription(uniqueId: string, subscriptionUniqueId: string, data: UpdateEntitySubscriptionRequest): Observable<EntitySubscription>;
71
- listSalesUsers(params?: ListSalesUsersParams): Observable<PageResult<SalesUser>>;
72
- getSalesUser(uniqueId: string): Observable<SalesUser>;
73
- registerSalesUser(uniqueId: string, data?: RegisterSalesUserRequest): Observable<SalesUser>;
74
- updateSalesUser(uniqueId: string, data: UpdateSalesUserRequest): Observable<SalesUser>;
75
- createSalesUserSubscription(uniqueId: string, data: CreateUserSubscriptionRequest): Observable<UserSubscription>;
76
- updateSalesUserSubscription(uniqueId: string, subscriptionUniqueId: string, data: UpdateUserSubscriptionRequest): Observable<UserSubscription>;
77
- listSalesCustomers(params?: ListSalesCustomersParams): Observable<PageResult<SalesCustomer>>;
78
- getSalesCustomer(uniqueId: string): Observable<SalesCustomer>;
79
- createSalesCustomer(data: CreateSalesCustomerRequest): Observable<SalesCustomer>;
80
- updateSalesCustomer(uniqueId: string, data: UpdateSalesCustomerRequest): Observable<SalesCustomer>;
81
- listFlexibleOrders(params?: ListFlexibleOrdersParams): Observable<PageResult<FlexibleOrder>>;
82
- getFlexibleOrder(uniqueId: string): Observable<FlexibleOrder>;
83
- createFlexibleOrder(data: CreateFlexibleOrderRequest): Observable<FlexibleOrder>;
84
- updateFlexibleOrder(uniqueId: string, data: UpdateFlexibleOrderRequest): Observable<FlexibleOrder>;
85
- listVendorPayments(params?: ListVendorPaymentsParams): Observable<PageResult<VendorPayment>>;
86
- getVendorPayment(uniqueId: string): Observable<VendorPayment>;
87
- createVendorPayment(data: CreateVendorPaymentRequest): Observable<VendorPayment>;
88
- updateVendorPayment(uniqueId: string, data: UpdateVendorPaymentRequest): Observable<VendorPayment>;
89
- /**
90
- * Create a Stripe customer
91
- */
92
- createStripeCustomer(data: CreateStripeCustomerRequest): Observable<CreateStripeCustomerResponse>;
93
- /**
94
- * Create a Stripe checkout session
95
- */
96
- createStripeCheckoutSession(data: CreateStripeCheckoutSessionRequest): Observable<StripeCheckoutSession>;
97
- /**
98
- * Create a Stripe payment intent
99
- */
100
- createStripePaymentIntent(data: CreateStripePaymentIntentRequest): Observable<StripePaymentIntent>;
101
- /**
102
- * Create a Stripe customer portal session
103
- */
104
- createStripeCustomerPortal(uniqueId: string, data: CreateStripeCustomerPortalRequest): Observable<StripeCustomerPortalSession>;
105
- /**
106
- * List Stripe subscriptions
107
- */
108
- listStripeSubscriptions(params?: ListStripeSubscriptionsParams): Observable<PageResult<StripeSubscription>>;
109
- /**
110
- * Create a Stripe subscription
111
- */
112
- createStripeSubscription(data: CreateStripeSubscriptionRequest): Observable<StripeSubscription>;
113
- /**
114
- * Update a Stripe subscription
115
- */
116
- updateStripeSubscription(stripeSubscriptionId: string, data: UpdateStripeSubscriptionRequest): Observable<StripeSubscription>;
117
- /**
118
- * Cancel a Stripe subscription
119
- */
120
- cancelStripeSubscription(stripeSubscriptionId: string): Observable<void>;
121
- /**
122
- * List Stripe webhooks
123
- */
124
- listStripeWebhooks(): Observable<StripeWebhook[]>;
125
- /**
126
- * Create a Stripe webhook
127
- */
128
- createStripeWebhook(data: CreateStripeWebhookRequest): Observable<StripeWebhook>;
129
- /**
130
- * List available MercadoPago payment methods
131
- */
132
- listMercadoPagoPaymentMethods(): Observable<MercadoPagoPaymentMethod[]>;
133
- /**
134
- * Create a MercadoPago payment intent
135
- */
136
- createMercadoPagoPaymentIntent(data: CreateMercadoPagoPaymentRequest): Observable<MercadoPagoPaymentIntent>;
137
- /**
138
- * Create a MercadoPago PSE payment intent (Colombia bank transfer)
139
- */
140
- createMercadoPagoPSEIntent(data: CreateMercadoPagoPSERequest): Observable<MercadoPagoPaymentIntent>;
141
- /**
142
- * Access the underlying block for advanced operations
143
- * Use this when you need access to services not wrapped by this Angular service
144
- */
145
- get salesBlock(): SalesBlock;
146
- }
147
- //# sourceMappingURL=sales.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sales.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/sales/sales.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,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,KAAK,EAEV,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,wBAAwB,EAC7B,KAAK,OAAO,EAEZ,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EAGjB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB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AwB,CAAC;IAQnG;;;OAGG;IACH,IAAI,UAAU,IAAI,UAAU,CAE3B;CACF"}
@@ -1,2 +0,0 @@
1
- export { SearchService } from './search.service.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,106 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import type { Transport, PageResult } from '@23blocks/contracts';
3
- import { type SearchBlock, type SearchBlockConfig, type SearchResult, type SearchQuery, type LastQuery, type FavoriteEntity, type EntityType, type SearchRequest, type SearchResponse, type AddFavoriteRequest, type SearchEntity, type EntityTypeSchema, type RegisterEntityRequest, type UpdateEntityRequest, type ListEntitiesParams, type CopilotSearchRequest, type SearchIdentity, type RegisterIdentityRequest, type UpdateIdentityRequest, type ListIdentitiesParams, type JarvisSearchQuery, type JarvisSearchResult } from '@23blocks/block-search';
4
- /**
5
- * Angular service wrapping the Search block.
6
- * Converts Promise-based APIs to RxJS Observables.
7
- *
8
- * @example
9
- * ```typescript
10
- * @Component({...})
11
- * export class SearchComponent {
12
- * results$ = new BehaviorSubject<SearchResult[]>([]);
13
- *
14
- * constructor(private searchService: SearchService) {}
15
- *
16
- * onSearch(query: string) {
17
- * this.searchService.search({ query }).subscribe({
18
- * next: (response) => this.results$.next(response.results),
19
- * error: (err) => console.error('Search failed:', err),
20
- * });
21
- * }
22
- * }
23
- * ```
24
- */
25
- export declare class SearchService {
26
- private readonly block;
27
- constructor(serviceTransport: Transport | null, legacyTransport: Transport | null, config: SearchBlockConfig);
28
- /**
29
- * Ensure the service is configured, throw helpful error if not
30
- */
31
- private ensureConfigured;
32
- /**
33
- * Perform a search query
34
- */
35
- search(request: SearchRequest): Observable<SearchResponse>;
36
- /**
37
- * Get search suggestions for autocomplete
38
- */
39
- suggest(query: string, limit?: number): Observable<SearchResult[]>;
40
- /**
41
- * Get available entity types for filtering
42
- */
43
- getEntityTypes(): Observable<EntityType[]>;
44
- /**
45
- * Get recent search queries
46
- */
47
- getLastQueries(limit?: number): Observable<LastQuery[]>;
48
- /**
49
- * Get the full history of search queries
50
- */
51
- getQueryHistory(params?: {
52
- page?: number;
53
- perPage?: number;
54
- }): Observable<SearchQuery[]>;
55
- /**
56
- * Clear search history
57
- */
58
- clearHistory(): Observable<void>;
59
- /**
60
- * List user's favorite entities
61
- */
62
- listFavorites(): Observable<FavoriteEntity[]>;
63
- /**
64
- * Add an entity to favorites
65
- */
66
- addFavorite(request: AddFavoriteRequest): Observable<FavoriteEntity>;
67
- /**
68
- * Remove an entity from favorites
69
- */
70
- removeFavorite(id: string): Observable<void>;
71
- /**
72
- * Check if an entity is favorited
73
- */
74
- isFavorite(entityUniqueId: string): Observable<boolean>;
75
- listEntities(params?: ListEntitiesParams): Observable<PageResult<SearchEntity>>;
76
- getEntity(uniqueId: string): Observable<SearchEntity>;
77
- registerEntity(uniqueId: string, data: RegisterEntityRequest): Observable<SearchEntity>;
78
- updateEntity(uniqueId: string, data: UpdateEntityRequest): Observable<SearchEntity>;
79
- deleteEntity(uniqueId: string): Observable<void>;
80
- listRegisteredEntityTypes(): Observable<{
81
- entityType: string;
82
- }[]>;
83
- getEntityTypeSchema(entityType: string): Observable<EntityTypeSchema>;
84
- searchByCopilot(data: CopilotSearchRequest): Observable<SearchEntity[]>;
85
- listIdentities(params?: ListIdentitiesParams): Observable<PageResult<SearchIdentity>>;
86
- getIdentity(uniqueId: string): Observable<SearchIdentity>;
87
- registerIdentity(uniqueId: string, data: RegisterIdentityRequest): Observable<SearchIdentity>;
88
- updateIdentity(uniqueId: string, data: UpdateIdentityRequest): Observable<SearchIdentity>;
89
- /**
90
- * Perform AI-enhanced search using Jarvis
91
- */
92
- jarvisSearch(query: JarvisSearchQuery): Observable<PageResult<JarvisSearchResult>>;
93
- /**
94
- * Get semantic suggestions using Jarvis AI
95
- */
96
- jarvisSuggest(query: string, limit?: number): Observable<string[]>;
97
- /**
98
- * Get related entities using Jarvis AI
99
- */
100
- jarvisGetRelated(entityUniqueId: string, entityType: string, limit?: number): Observable<JarvisSearchResult[]>;
101
- /**
102
- * Access the underlying block for advanced operations
103
- */
104
- get searchBlock(): SearchBlock;
105
- }
106
- //# sourceMappingURL=search.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/search/search.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,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAC;AAGhC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBACa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqB;gBAGH,gBAAgB,EAAE,SAAS,GAAG,IAAI,EACzC,eAAe,EAAE,SAAS,GAAG,IAAI,EACzC,MAAM,EAAE,iBAAiB;IAMlD;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAcxB;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,UAAU,CAAC,cAAc,CAAC;IAI1D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CAAC;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAIjE,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIrE,eAAe,CAAC,IAAI,EAAE,oBAAoB,GAAG,UAAU,CAAC,YAAY,EAAE,CAAC;IAQvE,cAAc,CAAC,MAAM,CAAC,EAAE,oBAAoB,GAAG,UAAU,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IAIrF,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC,cAAc,CAAC;IAIzD,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,UAAU,CAAC,cAAc,CAAC;IAI7F,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,GAAG,UAAU,CAAC,cAAc,CAAC;IAQzF;;OAEG;IACH,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAIlF;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC;IAIlE;;OAEG;IACH,gBAAgB,CAAC,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,kBAAkB,EAAE,CAAC;IAQ9G;;OAEG;IACH,IAAI,WAAW,IAAI,WAAW,CAE7B;CACF"}
@@ -1,203 +0,0 @@
1
- import type { Provider, EnvironmentProviders } from '@angular/core';
2
- import { InjectionToken } from '@angular/core';
3
- /**
4
- * Authentication mode
5
- */
6
- export type AuthMode = 'token' | 'cookie';
7
- /**
8
- * Storage type for token mode
9
- */
10
- export type StorageType = 'localStorage' | 'sessionStorage' | 'memory';
11
- /**
12
- * Service URL configuration - each microservice has its own URL.
13
- * All URLs are optional - only configure the services you need.
14
- */
15
- export interface ServiceUrls {
16
- /** Authentication service URL */
17
- authentication?: string;
18
- /** Search service URL */
19
- search?: string;
20
- /** Products service URL */
21
- products?: string;
22
- /** CRM service URL */
23
- crm?: string;
24
- /** Content service URL */
25
- content?: string;
26
- /** Geolocation service URL */
27
- geolocation?: string;
28
- /** Conversations service URL */
29
- conversations?: string;
30
- /** Files service URL */
31
- files?: string;
32
- /** Forms service URL */
33
- forms?: string;
34
- /** Assets service URL */
35
- assets?: string;
36
- /** Campaigns service URL */
37
- campaigns?: string;
38
- /** Company service URL */
39
- company?: string;
40
- /** Rewards service URL */
41
- rewards?: string;
42
- /** Sales service URL */
43
- sales?: string;
44
- /** Wallet service URL */
45
- wallet?: string;
46
- /** Jarvis (AI) service URL */
47
- jarvis?: string;
48
- /** Onboarding service URL */
49
- onboarding?: string;
50
- /** University (LMS) service URL */
51
- university?: string;
52
- }
53
- /**
54
- * Configuration for providing 23blocks services
55
- */
56
- export interface ProviderConfig {
57
- /**
58
- * Service URLs for each microservice.
59
- * Only configure the services you need - accessing a service without
60
- * a configured URL will throw an error.
61
- *
62
- * @example
63
- * ```typescript
64
- * provideBlocks23({
65
- * apiKey: 'your-api-key',
66
- * urls: {
67
- * authentication: 'https://gateway.23blocks.com',
68
- * crm: 'https://crm.23blocks.com',
69
- * products: 'https://products.23blocks.com',
70
- * },
71
- * })
72
- * ```
73
- */
74
- urls: ServiceUrls;
75
- /**
76
- * API Key for authenticating with 23blocks services
77
- */
78
- apiKey: string;
79
- /**
80
- * Tenant ID (optional, for multi-tenant setups)
81
- */
82
- tenantId?: string;
83
- /**
84
- * Authentication mode
85
- * - 'token' (default): SDK stores tokens in localStorage/sessionStorage/memory
86
- * - 'cookie': Backend manages auth via httpOnly cookies
87
- */
88
- authMode?: AuthMode;
89
- /**
90
- * Storage type for token mode
91
- * @default 'localStorage'
92
- */
93
- storage?: StorageType;
94
- /**
95
- * Additional headers to include with every request
96
- */
97
- headers?: Record<string, string>;
98
- /**
99
- * Request timeout in milliseconds
100
- * @default 30000
101
- */
102
- timeout?: number;
103
- }
104
- /**
105
- * Injection token for the token manager (internal use)
106
- */
107
- export declare const TOKEN_MANAGER: InjectionToken<TokenManagerService>;
108
- /**
109
- * Injection token for provider config
110
- */
111
- export declare const PROVIDER_CONFIG: InjectionToken<ProviderConfig>;
112
- /** @deprecated Use PROVIDER_CONFIG instead */
113
- export declare const SIMPLE_CONFIG: InjectionToken<ProviderConfig>;
114
- /**
115
- * Token manager interface
116
- */
117
- export interface TokenManagerService {
118
- getAccessToken(): string | null;
119
- getRefreshToken(): string | null;
120
- setTokens(accessToken: string, refreshToken?: string): void;
121
- clearTokens(): void;
122
- /**
123
- * Subscribe to storage changes from other tabs/windows.
124
- * Returns an unsubscribe function.
125
- */
126
- onStorageChange(callback: () => void): () => void;
127
- }
128
- /**
129
- * Provide 23blocks services with simplified configuration.
130
- *
131
- * This is the recommended way to set up 23blocks in new Angular applications.
132
- * It automatically handles token storage and authentication headers.
133
- *
134
- * Services are only available if their URL is configured. Accessing a service
135
- * without a configured URL will throw an error.
136
- *
137
- * @example Basic usage with multiple services
138
- * ```typescript
139
- * // app.config.ts
140
- * import { ApplicationConfig } from '@angular/core';
141
- * import { provideBlocks23 } from '@23blocks/angular';
142
- *
143
- * export const appConfig: ApplicationConfig = {
144
- * providers: [
145
- * provideBlocks23({
146
- * apiKey: 'your-api-key',
147
- * urls: {
148
- * authentication: 'https://gateway.23blocks.com',
149
- * crm: 'https://crm.23blocks.com',
150
- * products: 'https://products.23blocks.com',
151
- * },
152
- * }),
153
- * ],
154
- * };
155
- * ```
156
- *
157
- * @example Cookie mode (recommended for security)
158
- * ```typescript
159
- * export const appConfig: ApplicationConfig = {
160
- * providers: [
161
- * provideBlocks23({
162
- * apiKey: 'your-api-key',
163
- * authMode: 'cookie',
164
- * urls: {
165
- * authentication: 'https://gateway.23blocks.com',
166
- * crm: 'https://crm.23blocks.com',
167
- * },
168
- * }),
169
- * ],
170
- * };
171
- * ```
172
- */
173
- export declare function provideBlocks23(config: ProviderConfig): EnvironmentProviders;
174
- /**
175
- * Get providers array for NgModule-based applications with simplified config.
176
- *
177
- * Services are only available if their URL is configured. Accessing a service
178
- * without a configured URL will throw an error.
179
- *
180
- * @example
181
- * ```typescript
182
- * // app.module.ts
183
- * import { NgModule } from '@angular/core';
184
- * import { getBlocks23Providers } from '@23blocks/angular';
185
- *
186
- * @NgModule({
187
- * providers: [
188
- * ...getBlocks23Providers({
189
- * apiKey: 'your-api-key',
190
- * urls: {
191
- * authentication: 'https://gateway.23blocks.com',
192
- * crm: 'https://crm.23blocks.com',
193
- * },
194
- * }),
195
- * ],
196
- * })
197
- * export class AppModule {}
198
- * ```
199
- */
200
- export declare function getBlocks23Providers(config: ProviderConfig): Provider[];
201
- /** @deprecated Use `ProviderConfig` instead */
202
- export type Simple23BlocksConfig = ProviderConfig;
203
- //# sourceMappingURL=simple-providers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"simple-providers.d.ts","sourceRoot":"","sources":["../../../src/lib/simple-providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,cAAc,EAA4B,MAAM,eAAe,CAAC;AA6CzE;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,gBAAgB,GAAG,QAAQ,CAAC;AAEvE;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,iCAAiC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,OAAO,CAAC,EAAE,M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O,MAAM,aAAa,gCAAkB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,cAAc,IAAI,MAAM,GAAG,IAAI,CAAC;IAChC,eAAe,IAAI,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5D,WAAW,IAAI,IAAI,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;CACnD;AAmJD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,cAAc,GAAG,oBAAoB,CA+F5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,QAAQ,EAAE,CA0FvE;AAMD,+CAA+C;AAC/C,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC"}
@@ -1,134 +0,0 @@
1
- import { InjectionToken } 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 { GeolocationBlockConfig } from '@23blocks/block-geolocation';
6
- import type { ContentBlockConfig } from '@23blocks/block-content';
7
- import type { CrmBlockConfig } from '@23blocks/block-crm';
8
- import type { ProductsBlockConfig } from '@23blocks/block-products';
9
- import type { ConversationsBlockConfig } from '@23blocks/block-conversations';
10
- import type { FilesBlockConfig } from '@23blocks/block-files';
11
- import type { AssetsBlockConfig } from '@23blocks/block-assets';
12
- import type { FormsBlockConfig } from '@23blocks/block-forms';
13
- import type { SalesBlockConfig } from '@23blocks/block-sales';
14
- import type { CampaignsBlockConfig } from '@23blocks/block-campaigns';
15
- import type { CompanyBlockConfig } from '@23blocks/block-company';
16
- import type { RewardsBlockConfig } from '@23blocks/block-rewards';
17
- import type { JarvisBlockConfig } from '@23blocks/block-jarvis';
18
- import type { OnboardingBlockConfig } from '@23blocks/block-onboarding';
19
- import type { UniversityBlockConfig } from '@23blocks/block-university';
20
- import type { WalletBlockConfig } from '@23blocks/block-wallet';
21
- /**
22
- * @deprecated Use per-service transport tokens (AUTHENTICATION_TRANSPORT, etc.)
23
- * Shared transport token - only for backward compatibility with advanced API
24
- */
25
- export declare const TRANSPORT: InjectionToken<Transport>;
26
- /** Transport for Authentication service */
27
- export declare const AUTHENTICATION_TRANSPORT: InjectionToken<Transport | null>;
28
- /** Transport for Search service */
29
- export declare const SEARCH_TRANSPORT: InjectionToken<Transport | null>;
30
- /** Transport for Products service */
31
- export declare const PRODUCTS_TRANSPORT: InjectionToken<Transport | null>;
32
- /** Transport for CRM service */
33
- export declare const CRM_TRANSPORT: InjectionToken<Transport | null>;
34
- /** Transport for Content service */
35
- export declare const CONTENT_TRANSPORT: InjectionToken<Transport | null>;
36
- /** Transport for Geolocation service */
37
- export declare const GEOLOCATION_TRANSPORT: InjectionToken<Transport | null>;
38
- /** Transport for Conversations service */
39
- export declare const CONVERSATIONS_TRANSPORT: InjectionToken<Transport | null>;
40
- /** Transport for Files service */
41
- export declare const FILES_TRANSPORT: InjectionToken<Transport | null>;
42
- /** Transport for Forms service */
43
- export declare const FORMS_TRANSPORT: InjectionToken<Transport | null>;
44
- /** Transport for Assets service */
45
- export declare const ASSETS_TRANSPORT: InjectionToken<Transport | null>;
46
- /** Transport for Campaigns service */
47
- export declare const CAMPAIGNS_TRANSPORT: InjectionToken<Transport | null>;
48
- /** Transport for Company service */
49
- export declare const COMPANY_TRANSPORT: InjectionToken<Transport | null>;
50
- /** Transport for Rewards service */
51
- export declare const REWARDS_TRANSPORT: InjectionToken<Transport | null>;
52
- /** Transport for Sales service */
53
- export declare const SALES_TRANSPORT: InjectionToken<Transport | null>;
54
- /** Transport for Wallet service */
55
- export declare const WALLET_TRANSPORT: InjectionToken<Transport | null>;
56
- /** Transport for Jarvis service */
57
- export declare const JARVIS_TRANSPORT: InjectionToken<Transport | null>;
58
- /** Transport for Onboarding service */
59
- export declare const ONBOARDING_TRANSPORT: InjectionToken<Transport | null>;
60
- /** Transport for University service */
61
- export declare const UNIVERSITY_TRANSPORT: InjectionToken<Transport | null>;
62
- /**
63
- * Injection token for Authentication block configuration
64
- */
65
- export declare const AUTHENTICATION_CONFIG: InjectionToken<AuthenticationBlockConfig>;
66
- /**
67
- * Injection token for Search block configuration
68
- */
69
- export declare const SEARCH_CONFIG: InjectionToken<SearchBlockConfig>;
70
- /**
71
- * Injection token for Geolocation block configuration
72
- */
73
- export declare const GEOLOCATION_CONFIG: InjectionToken<GeolocationBlockConfig>;
74
- /**
75
- * Injection token for Content block configuration
76
- */
77
- export declare const CONTENT_CONFIG: InjectionToken<ContentBlockConfig>;
78
- /**
79
- * Injection token for CRM block configuration
80
- */
81
- export declare const CRM_CONFIG: InjectionToken<CrmBlockConfig>;
82
- /**
83
- * Injection token for Products block configuration
84
- */
85
- export declare const PRODUCTS_CONFIG: InjectionToken<ProductsBlockConfig>;
86
- /**
87
- * Injection token for Conversations block configuration
88
- */
89
- export declare const CONVERSATIONS_CONFIG: InjectionToken<ConversationsBlockConfig>;
90
- /**
91
- * Injection token for Files block configuration
92
- */
93
- export declare const FILES_CONFIG: InjectionToken<FilesBlockConfig>;
94
- /**
95
- * Injection token for Assets block configuration
96
- */
97
- export declare const ASSETS_CONFIG: InjectionToken<AssetsBlockConfig>;
98
- /**
99
- * Injection token for Forms block configuration
100
- */
101
- export declare const FORMS_CONFIG: InjectionToken<FormsBlockConfig>;
102
- /**
103
- * Injection token for Sales block configuration
104
- */
105
- export declare const SALES_CONFIG: InjectionToken<SalesBlockConfig>;
106
- /**
107
- * Injection token for Campaigns block configuration
108
- */
109
- export declare const CAMPAIGNS_CONFIG: InjectionToken<CampaignsBlockConfig>;
110
- /**
111
- * Injection token for Company block configuration
112
- */
113
- export declare const COMPANY_CONFIG: InjectionToken<CompanyBlockConfig>;
114
- /**
115
- * Injection token for Rewards block configuration
116
- */
117
- export declare const REWARDS_CONFIG: InjectionToken<RewardsBlockConfig>;
118
- /**
119
- * Injection token for Jarvis block configuration
120
- */
121
- export declare const JARVIS_CONFIG: InjectionToken<JarvisBlockConfig>;
122
- /**
123
- * Injection token for Onboarding block configuration
124
- */
125
- export declare const ONBOARDING_CONFIG: InjectionToken<OnboardingBlockConfig>;
126
- /**
127
- * Injection token for University block configuration
128
- */
129
- export declare const UNIVERSITY_CONFIG: InjectionToken<UniversityBlockConfig>;
130
- /**
131
- * Injection token for Wallet block configuration
132
- */
133
- export declare const WALLET_CONFIG: InjectionToken<WalletBlockConfig>;
134
- //# sourceMappingURL=tokens.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/lib/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,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,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,g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,aAAa,mCAEzB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { UniversityService } from './university.service';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/university/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}