@osovitny/anatoly 3.19.48 → 3.20.0

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 (170) hide show
  1. package/fesm2022/osovitny-anatoly.mjs +68 -81
  2. package/fesm2022/osovitny-anatoly.mjs.map +1 -1
  3. package/index.d.ts +2075 -5
  4. package/package.json +51 -52
  5. package/lib/anatoly.module.d.ts +0 -11
  6. package/lib/billing/billing.module.d.ts +0 -21
  7. package/lib/billing/components/buttons/buyaccess-button.component.d.ts +0 -19
  8. package/lib/billing/components/buttons/subscribe-plan-button.component.d.ts +0 -20
  9. package/lib/billing/components/exports.d.ts +0 -10
  10. package/lib/billing/components/index.d.ts +0 -2
  11. package/lib/billing/components/order-summary/order-summary.component.d.ts +0 -22
  12. package/lib/billing/components/payment-methods/payment-methods.component.d.ts +0 -20
  13. package/lib/billing/components/payment-options/payment-options.component.d.ts +0 -18
  14. package/lib/billing/components/pm/braintree/braintree.component.d.ts +0 -27
  15. package/lib/billing/components/pm/paypal/paypal-button.component.d.ts +0 -20
  16. package/lib/billing/components/pm/paypal/paypal-subscribe-button.component.d.ts +0 -25
  17. package/lib/billing/components/pm/paypal/paypal.component.d.ts +0 -50
  18. package/lib/billing/components/pm/stripe/stripe.component.d.ts +0 -23
  19. package/lib/billing/exports.d.ts +0 -5
  20. package/lib/billing/models/paypal-models.d.ts +0 -309
  21. package/lib/billing/services/billing.service.d.ts +0 -33
  22. package/lib/billing/services/payments.service.d.ts +0 -29
  23. package/lib/billing/services/paypal-script.service.d.ts +0 -13
  24. package/lib/billing/utils.d.ts +0 -4
  25. package/lib/core/consts/app-settings.d.ts +0 -11
  26. package/lib/core/consts/core-settings.d.ts +0 -7
  27. package/lib/core/consts/formats.d.ts +0 -11
  28. package/lib/core/consts/ga.d.ts +0 -11
  29. package/lib/core/consts/storageKeys.d.ts +0 -8
  30. package/lib/core/converts/convert.d.ts +0 -16
  31. package/lib/core/converts/dateConvert.d.ts +0 -5
  32. package/lib/core/converts/tz/tzParseTimezone.d.ts +0 -1
  33. package/lib/core/converts/tz/tzTokenizeDate.d.ts +0 -5
  34. package/lib/core/converts/xmlFormatter.d.ts +0 -4
  35. package/lib/core/core.module.d.ts +0 -15
  36. package/lib/core/dom.d.ts +0 -17
  37. package/lib/core/enums/billing.d.ts +0 -34
  38. package/lib/core/enums/enums.d.ts +0 -17
  39. package/lib/core/enums/index.d.ts +0 -2
  40. package/lib/core/exports.d.ts +0 -40
  41. package/lib/core/go/apps-go.service.d.ts +0 -16
  42. package/lib/core/go/go.service.d.ts +0 -25
  43. package/lib/core/guards/once-import.guard.d.ts +0 -1
  44. package/lib/core/guards/starter.guard.d.ts +0 -13
  45. package/lib/core/guid.d.ts +0 -3
  46. package/lib/core/interceptors/httpInterceptor.d.ts +0 -23
  47. package/lib/core/is.d.ts +0 -23
  48. package/lib/core/localization/localization.module.d.ts +0 -8
  49. package/lib/core/localization/localization.service.d.ts +0 -31
  50. package/lib/core/localization/localize.pipe.d.ts +0 -10
  51. package/lib/core/localization/settings.module.d.ts +0 -14
  52. package/lib/core/localization/utils.d.ts +0 -5
  53. package/lib/core/logging/globalErrorHandler.d.ts +0 -9
  54. package/lib/core/logging/logging.service.d.ts +0 -9
  55. package/lib/core/models/qs.d.ts +0 -4
  56. package/lib/core/notifications/alerts.d.ts +0 -10
  57. package/lib/core/notifications/interfaces/notification.d.ts +0 -10
  58. package/lib/core/notifications/services/notification-service.d.ts +0 -15
  59. package/lib/core/performance/stopwatch.d.ts +0 -14
  60. package/lib/core/services/appcontext.service.d.ts +0 -61
  61. package/lib/core/services/browser.service.d.ts +0 -24
  62. package/lib/core/services/dm.service.d.ts +0 -26
  63. package/lib/core/services/google-analytics.service.d.ts +0 -13
  64. package/lib/core/services/idle.service.d.ts +0 -19
  65. package/lib/core/services/loading.service.d.ts +0 -14
  66. package/lib/core/services/script.service.d.ts +0 -13
  67. package/lib/core/services/starter.service.d.ts +0 -16
  68. package/lib/core/services/web-storage.service.d.ts +0 -22
  69. package/lib/core/subs.d.ts +0 -8
  70. package/lib/core/utils/qsutils.d.ts +0 -11
  71. package/lib/core/utils/utils.d.ts +0 -8
  72. package/lib/data/base/api.service.d.ts +0 -20
  73. package/lib/data/base/grid/grid-edit.service.d.ts +0 -16
  74. package/lib/data/base/grid/grid-read.service.d.ts +0 -14
  75. package/lib/data/data.module.d.ts +0 -7
  76. package/lib/data/exports.d.ts +0 -11
  77. package/lib/data/services/billing/currencies-api.service.d.ts +0 -12
  78. package/lib/data/services/billing/currencies-storage.service.d.ts +0 -22
  79. package/lib/data/services/billing/payments-api.service.d.ts +0 -13
  80. package/lib/data/services/billing/promocodes-api.service.d.ts +0 -11
  81. package/lib/data/services/billing/subscriptions-api.service.d.ts +0 -14
  82. package/lib/data/services/billing/transactions-api.service.d.ts +0 -13
  83. package/lib/data/services/core-api.service.d.ts +0 -9
  84. package/lib/data/services/emails-api.service.d.ts +0 -10
  85. package/lib/external/fa.module.d.ts +0 -10
  86. package/lib/external/kendo.module.d.ts +0 -26
  87. package/lib/iam/b2c/b2c.d.ts +0 -4
  88. package/lib/iam/b2c/consts.d.ts +0 -6
  89. package/lib/iam/b2c/index.d.ts +0 -2
  90. package/lib/iam/configs.d.ts +0 -5
  91. package/lib/iam/consts.d.ts +0 -3
  92. package/lib/iam/exports.d.ts +0 -3
  93. package/lib/iam/guards/admin.guard.d.ts +0 -13
  94. package/lib/iam/guards/authentication.guard.d.ts +0 -13
  95. package/lib/iam/guards/index.d.ts +0 -2
  96. package/lib/iam/iam-pages.module.d.ts +0 -11
  97. package/lib/iam/iam-pages.routes.d.ts +0 -6
  98. package/lib/iam/iam.module.d.ts +0 -13
  99. package/lib/iam/pages/signin.page.d.ts +0 -11
  100. package/lib/iam/pages/signout.page.d.ts +0 -11
  101. package/lib/iam/pages/signup.page.d.ts +0 -11
  102. package/lib/iam/redirect.d.ts +0 -3
  103. package/lib/iam/services/auth.service.d.ts +0 -45
  104. package/lib/iam/storage.d.ts +0 -8
  105. package/lib/iam/utils.d.ts +0 -6
  106. package/lib/ui/components/base/components/component.d.ts +0 -25
  107. package/lib/ui/components/base/components/edit.component.d.ts +0 -61
  108. package/lib/ui/components/base/components/enum-edit.component.d.ts +0 -21
  109. package/lib/ui/components/base/dialog.d.ts +0 -19
  110. package/lib/ui/components/base/list.d.ts +0 -27
  111. package/lib/ui/components/base/pages/edit.page.d.ts +0 -6
  112. package/lib/ui/components/base/pages/page.d.ts +0 -6
  113. package/lib/ui/components/base/pages/paged.page.d.ts +0 -18
  114. package/lib/ui/components/card/card-body.component.d.ts +0 -6
  115. package/lib/ui/components/card/card-footer.component.d.ts +0 -6
  116. package/lib/ui/components/card/card-header.component.d.ts +0 -6
  117. package/lib/ui/components/card/card.component.d.ts +0 -6
  118. package/lib/ui/components/check-icon/check-icon.component.d.ts +0 -6
  119. package/lib/ui/components/copy-2-clipboard/copy-2-clipboard.component.d.ts +0 -9
  120. package/lib/ui/components/data-grid/control-panel.component.d.ts +0 -34
  121. package/lib/ui/components/datapager/datapager.component.d.ts +0 -21
  122. package/lib/ui/components/dropdownlists/country/country.dropdownlist.d.ts +0 -13
  123. package/lib/ui/components/dropdownlists/language/language.dropdownlist.d.ts +0 -12
  124. package/lib/ui/components/dropdownlists/moderationstatus/moderationstatus.dropdownlist.d.ts +0 -8
  125. package/lib/ui/components/dropdownlists/publishstatus/publishstatus.dropdownlist.d.ts +0 -8
  126. package/lib/ui/components/dropdownlists/timezone/timezone.dropdownlist.d.ts +0 -14
  127. package/lib/ui/components/exports.d.ts +0 -34
  128. package/lib/ui/components/feature-will-be-ready/feature-will-be-ready.component.d.ts +0 -7
  129. package/lib/ui/components/html-editor/base-editor.component.d.ts +0 -20
  130. package/lib/ui/components/html-editor/defaultoptions.d.ts +0 -1
  131. package/lib/ui/components/html-editor/html-editor.component.d.ts +0 -10
  132. package/lib/ui/components/identity/signin-button.component.d.ts +0 -11
  133. package/lib/ui/components/identity/signout-button.component.d.ts +0 -11
  134. package/lib/ui/components/identity/signup-button.component.d.ts +0 -11
  135. package/lib/ui/components/index.d.ts +0 -2
  136. package/lib/ui/components/no-mobile-support/no-mobile-support.component.d.ts +0 -7
  137. package/lib/ui/components/nodata/nodata.component.d.ts +0 -12
  138. package/lib/ui/components/spinners/loading/loading.component.d.ts +0 -12
  139. package/lib/ui/components/spinners/pagespinner/pagespinner.component.d.ts +0 -25
  140. package/lib/ui/components/spinners/pagespinner/spinkits.d.ts +0 -11
  141. package/lib/ui/components/urlslug/urlslug.component.d.ts +0 -18
  142. package/lib/ui/components/you-agree-to-our-terms/you-agree-to-our-terms.component.d.ts +0 -8
  143. package/lib/ui/dialogs/contact-us/contact-us.dialog.d.ts +0 -12
  144. package/lib/ui/dialogs/exports.d.ts +0 -1
  145. package/lib/ui/dialogs/index.d.ts +0 -2
  146. package/lib/ui/directives/exports.d.ts +0 -4
  147. package/lib/ui/directives/hover.directive.d.ts +0 -8
  148. package/lib/ui/directives/index.d.ts +0 -2
  149. package/lib/ui/directives/native-element.directive.d.ts +0 -11
  150. package/lib/ui/directives/replacer/a-replacer.directive.d.ts +0 -11
  151. package/lib/ui/directives/replacer/image-replacer.directive.d.ts +0 -11
  152. package/lib/ui/directives/replacer/replacer.base.directive.d.ts +0 -11
  153. package/lib/ui/exports.d.ts +0 -6
  154. package/lib/ui/forms/components/address/address.component.d.ts +0 -32
  155. package/lib/ui/forms/components/company/company.component.d.ts +0 -18
  156. package/lib/ui/forms/contact-us/contact-us.d.ts +0 -32
  157. package/lib/ui/forms/exports.d.ts +0 -3
  158. package/lib/ui/forms/index.d.ts +0 -2
  159. package/lib/ui/pipes/exports.d.ts +0 -3
  160. package/lib/ui/pipes/filesize.pipe.d.ts +0 -8
  161. package/lib/ui/pipes/index.d.ts +0 -2
  162. package/lib/ui/pipes/replace-text.pipe.d.ts +0 -7
  163. package/lib/ui/pipes/safeHtml.pipe.d.ts +0 -10
  164. package/lib/ui/ui.module.d.ts +0 -50
  165. package/lib/ui/validation/exports.d.ts +0 -3
  166. package/lib/ui/validation/form-validation-summary.component.d.ts +0 -11
  167. package/lib/ui/validation/index.d.ts +0 -2
  168. package/lib/ui/validation/item-validation-summary.component.d.ts +0 -6
  169. package/lib/ui/validation/validation-summary.component.d.ts +0 -11
  170. package/public-api.d.ts +0 -12
@@ -1,309 +0,0 @@
1
- import { IQueryParam } from '../../core/models/qs';
2
- export interface IPayPalConfig {
3
- /**
4
- * Currency - Defaults to USD if not provided
5
- */
6
- currency?: string;
7
- /**
8
- * Use when creating order on client
9
- */
10
- createOrderOnClient?: (data: any) => ICreateOrderRequest;
11
- /**
12
- * Use when creating subscription on client
13
- */
14
- createSubscriptionOnClient?: (data: any) => ICreateSubscriptionRequest;
15
- /**
16
- * Use for creating orders on server. PayPal expects you to return 'orderId' in this method
17
- */
18
- createOrderOnServer?: (data: any) => Promise<string>;
19
- /**
20
- * Advanced configuration
21
- */
22
- advanced?: IAdvancedConfiguration;
23
- /**
24
- * Client id
25
- */
26
- clientId: string;
27
- /**
28
- * Shipping callback
29
- * see https://developer.paypal.com/docs/checkout/integration-features/shipping-callback/
30
- */
31
- onShippingChange?: OnShippingChangeCallback;
32
- /**
33
- * Called when 'onApprove' event occurs
34
- */
35
- onApprove?: (data: IOnApproveCallbackData, actions: any) => void;
36
- /**
37
- * Called when authorization on client succeeds
38
- */
39
- onClientAuthorization?: (authorization: IClientAuthorizeCallbackData) => void;
40
- /**
41
- * Implement for authorizing on server side
42
- */
43
- authorizeOnServer?: (data: IOnApproveCallbackData, actions: any) => Promise<any>;
44
- /**
45
- * Button style configuration
46
- */
47
- style?: IPayPalButtonStyle;
48
- /**
49
- * Error handler
50
- */
51
- onError?: (err: any) => void;
52
- /**
53
- * Click handler
54
- */
55
- onClick?: (data: any, actions: IOnClickCallbackActions) => void;
56
- /**
57
- * Cancel handler
58
- */
59
- onCancel?: (data: ICancelCallbackData, actions: any) => void;
60
- /**
61
- * Init handler.
62
- * can be used for validation, see: https://developer.paypal.com/docs/checkout/integration-features/validation/#
63
- */
64
- onInit?: (data: IInitCallbackData, actions: IOnInitCallbackActions) => void;
65
- /**
66
- * Create subscription handler
67
- * https://developer.paypal.com/docs/subscriptions/integrate/
68
- *
69
- * Note: the vault property in the advanced configuration also has to be set to true
70
- */
71
- createSubscription?: (data: any) => ICreateSubscriptionRequest;
72
- /**
73
- * Vault - must be set to true when creating subscriptions
74
- */
75
- vault?: TrueFalse;
76
- intent?: OrderIntent;
77
- fundingSource?: "PAYPAL" | "CARD" | "PAYLATER" | "CREDIT" | "VENMO";
78
- debug?: boolean;
79
- }
80
- export type TrueFalse = "true" | "false";
81
- export interface IPayPalUrlConfig {
82
- clientId: string;
83
- currency?: string;
84
- funding?: boolean;
85
- commit?: TrueFalse;
86
- vault?: TrueFalse;
87
- intent?: OrderIntent;
88
- locale?: string;
89
- extraParams?: IQueryParam[];
90
- debug?: boolean;
91
- }
92
- export interface IOrderDetails {
93
- create_time: string;
94
- update_time: string;
95
- id: string;
96
- intent: OrderIntent;
97
- payer: IPayer;
98
- status: OrderStatus;
99
- links: ILinkDescription[];
100
- purchase_units: IPurchaseUnit[];
101
- }
102
- export interface IClientAuthorizeCallbackData extends IOrderDetails {
103
- links: ILinkDescription[];
104
- }
105
- export interface ILinkDescription {
106
- href: string;
107
- rel: String;
108
- method?: LinkMethod;
109
- }
110
- export type OnShippingChangeCallback = (data: IOnShippingChangeData, actions: IOnShippingChangeActions) => any;
111
- export interface IOnShippingChangeData {
112
- paymentToken: string;
113
- shipping_address: any;
114
- selected_shipping_method?: any;
115
- }
116
- export interface IOnShippingChangeActions {
117
- resolve: () => any;
118
- reject: () => any;
119
- patch: () => any;
120
- }
121
- export type LinkMethod = "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "CONNECT" | "OPTIONS" | "PATCH";
122
- export interface IAdvancedConfiguration {
123
- commit?: TrueFalse;
124
- locale?: string;
125
- extraQueryParams?: IQueryParam[];
126
- }
127
- export interface IOnApproveCallbackData {
128
- orderID: string;
129
- payerID: string;
130
- subscriptionID: string;
131
- }
132
- export interface ICreateOrderCallbackActions {
133
- order: {
134
- create: (order: ICreateOrderRequest) => Promise<any>;
135
- };
136
- }
137
- export interface ICancelCallbackData {
138
- orderID: string;
139
- }
140
- export interface IOnApproveCallbackActions {
141
- redirect: () => void;
142
- restart: () => void;
143
- order: {
144
- authorize: () => Promise<any>;
145
- capture: () => Promise<any>;
146
- get: () => Promise<IOrderDetails>;
147
- patch: () => Promise<any>;
148
- };
149
- }
150
- export interface IOnInitCallbackActions {
151
- enable: () => void;
152
- disable: () => void;
153
- }
154
- export interface ICreateSubscriptionCallbackActions {
155
- subscription: {
156
- create: (subscription: ICreateSubscriptionRequest) => Promise<any>;
157
- revise: (subscriptionId: string, subscription: ICreateSubscriptionRequest) => Promise<any>;
158
- };
159
- }
160
- export interface IInitCallbackData {
161
- }
162
- export interface ICreateSubscriptionCallbackData {
163
- }
164
- export interface IOnClickCallbackActions {
165
- resolve: () => void;
166
- reject: () => void;
167
- }
168
- export interface IPayPalButtonStyle {
169
- label?: "paypal" | "checkout" | "pay" | "installment" | "buynow" | "subscribe";
170
- shape?: "pill" | "rect";
171
- color?: "gold" | "blue" | "silver" | "white" | "black";
172
- layout?: "horizontal" | "vertical";
173
- tagline?: boolean;
174
- height?: number;
175
- fundingicons?: boolean;
176
- }
177
- export interface ICreateOrderRequest {
178
- intent: OrderIntent;
179
- purchase_units: IPurchaseUnit[];
180
- payer?: IPayer;
181
- application_context?: IApplicationContext;
182
- }
183
- export interface ICreateSubscriptionRequest {
184
- plan_id: string;
185
- quantity?: number;
186
- custom_id: string;
187
- application_context?: IApplicationContext;
188
- }
189
- export interface IPayer {
190
- name?: IPartyName;
191
- email_address?: string;
192
- payer_id?: string;
193
- birth_date?: string;
194
- tax_info?: ITaxInfo;
195
- address?: IAddressPortable;
196
- phone?: IPhone;
197
- }
198
- export interface IApplicationContext {
199
- brand_name?: string;
200
- locale?: string;
201
- landing_page?: PaypalLandingPage;
202
- shipping_preference?: ShippingPreference;
203
- user_action?: PayPalUserAction;
204
- payment_method?: IPaymentMethod;
205
- return_url?: string;
206
- cancel_url?: string;
207
- }
208
- export interface IPaymentMethod {
209
- payer_selected?: PayerSelected;
210
- payee_preferred?: PayeePreferred;
211
- }
212
- export type PayeePreferred = "UNRESTRICTED" | "IMMEDIATE_PAYMENT_REQUIRED";
213
- export type PayerSelected = "PAYPAL_CREDIT" | "PAYPAL";
214
- export type PayPalUserAction = "CONTINUE" | "PAY_NOW";
215
- export type ShippingPreference = "GET_FROM_FILE" | "NO_SHIPPING" | "SET_PROVIDED_ADDRESS";
216
- export type PaypalLandingPage = "LOGIN" | "BILLING";
217
- export type OrderIntent = "CAPTURE" | "AUTHORIZE" | "subscription";
218
- export type DisbursementMode = "INSTANT" | "DELAYED";
219
- export type ItemCategory = "DIGITAL_GOODS" | "PHYSICAL_GOODS";
220
- export type PhoneType = "FAX" | "HOME" | "MOBILE" | "OTHER" | "PAGER";
221
- export type TaxIdType = "BR_CPF" | "BR_CNPJ";
222
- export interface IPhone {
223
- phone_type?: PhoneType;
224
- phone_number?: IPhoneNumber;
225
- }
226
- export interface ITaxInfo {
227
- tax_id: string;
228
- tax_id_type: TaxIdType;
229
- }
230
- export interface IPhoneNumber {
231
- national_number: string;
232
- }
233
- export interface IPurchaseUnit {
234
- amount: IUnitAmount;
235
- reference_id?: string;
236
- payee?: IPayee;
237
- payment_instruction?: IPaymentInstructions;
238
- description?: string;
239
- custom_id?: string;
240
- invoice_id?: string;
241
- soft_descriptor?: string;
242
- items: ITransactionItem[];
243
- shipping?: IShipping;
244
- }
245
- export interface IPayee {
246
- email_address?: string;
247
- merchant_id?: string;
248
- }
249
- export interface IPaymentInstructions {
250
- platform_fees?: IPlatformFee[];
251
- disbursement_mode?: DisbursementMode;
252
- }
253
- export interface IPlatformFee {
254
- amount: IUnitAmount;
255
- payee?: IPayee;
256
- }
257
- export interface ITransactionItem {
258
- name: string;
259
- unit_amount: IUnitAmount;
260
- quantity: string;
261
- description?: string;
262
- sku?: string;
263
- category?: ItemCategory;
264
- tax?: ITax;
265
- }
266
- export interface ITax {
267
- currency_code: string;
268
- value: string;
269
- }
270
- export interface IUnitAmount {
271
- currency_code: string;
272
- value: string;
273
- breakdown?: IUnitBreakdown;
274
- }
275
- export interface IMoney {
276
- currency_code: string;
277
- value: string;
278
- }
279
- export interface IUnitBreakdown {
280
- item_total?: IUnitAmount;
281
- shipping?: IUnitAmount;
282
- handling?: IUnitAmount;
283
- tax_total?: IUnitAmount;
284
- insurance?: IUnitAmount;
285
- shipping_discount?: IUnitAmount;
286
- discount?: IMoney;
287
- }
288
- export interface IPartyName {
289
- prefix?: string;
290
- given_name?: string;
291
- surname?: string;
292
- middle_name?: string;
293
- suffix?: string;
294
- alternate_full_name?: string;
295
- full_name?: string;
296
- }
297
- export interface IAddressPortable {
298
- country_code: string;
299
- address_line_1?: string;
300
- address_line_2?: string;
301
- admin_area_2?: string;
302
- admin_area_1?: string;
303
- postal_code?: string;
304
- }
305
- export interface IShipping {
306
- name?: IPartyName;
307
- address?: IAddressPortable;
308
- }
309
- export type OrderStatus = "APPROVED" | "SAVED" | "CREATED" | "VOIDED" | "COMPLETED";
@@ -1,33 +0,0 @@
1
- import { NgZone } from '@angular/core';
2
- import { SubscriptionsApiService } from '../../data/services/billing/subscriptions-api.service';
3
- import { AppContextService } from '../../core/services/appcontext.service';
4
- import { PaymentStage, SubscriptionProvider } from '../../core/enums';
5
- import { PaymentsApiService } from '../../data/services/billing/payments-api.service';
6
- import { NotificationService } from '../../core/notifications/services/notification-service';
7
- import * as i0 from "@angular/core";
8
- export declare class BillingService {
9
- private zone;
10
- private appContext;
11
- private apiPayments;
12
- private apiSubscriptions;
13
- private ns;
14
- private _paymentAdded;
15
- readonly paymentAdded$: import("rxjs").Observable<any>;
16
- private _paymentProgress;
17
- readonly paymentProgress$: import("rxjs").Observable<any>;
18
- private _subscriptionAdded;
19
- readonly subscriptionAdded$: import("rxjs").Observable<any>;
20
- constructor(zone: NgZone, appContext: AppContextService, apiPayments: PaymentsApiService, apiSubscriptions: SubscriptionsApiService, ns: NotificationService);
21
- firePaymentAdded(isPaymentValid: any, paymentId: any): void;
22
- firePaymentProgress(paymentStage: any, paymentInProgress: any, isPaymentFailed: any): void;
23
- fireSubscriptionAdded(paymentInProgress: any, paymentFailed: any): void;
24
- createStripeSession(amount: any, currency: any, title: any, description: any, image: any): import("rxjs").Observable<any>;
25
- createBraintreeToken(): import("rxjs").Observable<any>;
26
- addPayment(paymentMethod: any, paidFor: any, subtotal: any, promoCode: any, total: any, currency: any, pmId: any, pmStatus: any, pmDetails: any): void;
27
- paymentSuccessful(stage: PaymentStage): void;
28
- paymentFailed(stage: PaymentStage): void;
29
- setPaymentProgress(stage: PaymentStage, paymentInProgress: any, isPaymentFailed: any): void;
30
- addSubscription(sp: SubscriptionProvider, newSubscriptionId: any, planId: any, addons: any, subtotal: any, promoCode: any, total: any, currency: any): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<BillingService, never>;
32
- static ɵprov: i0.ɵɵInjectableDeclaration<BillingService>;
33
- }
@@ -1,29 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class PaymentsService {
3
- selectedPaymentType: any;
4
- selectedPaymentMethod: any;
5
- subtotal: number;
6
- promoCode: any;
7
- promoPercentage: any;
8
- promoAmount: any;
9
- currency: string;
10
- private _promoCodeApplied;
11
- readonly promoCodeApplied$: import("rxjs").Observable<any>;
12
- private _showStripeDialog;
13
- readonly showStripeDialog$: import("rxjs").Observable<any>;
14
- private _showBraintreeDialog;
15
- readonly showBraintreeDialog$: import("rxjs").Observable<any>;
16
- private setDefaults;
17
- private setValues;
18
- private firePromoCodeApplied;
19
- init(): void;
20
- resetState(): void;
21
- getTotal(): number;
22
- applyPromoCode(data: any): void;
23
- getPromoCodeAsString(): string;
24
- openStripePaymentDialog(): void;
25
- openBraintreePaymentDialog(): void;
26
- closeBraintreePaymentDialog(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<PaymentsService, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<PaymentsService>;
29
- }
@@ -1,13 +0,0 @@
1
- import { IPayPalUrlConfig } from '../models/paypal-models';
2
- import { ScriptService } from '../../core/services/script.service';
3
- import * as i0 from "@angular/core";
4
- export declare class PayPalScriptService {
5
- protected ss: ScriptService;
6
- private readonly paypalWindowName;
7
- constructor(ss: ScriptService);
8
- registerPayPalScript(config: IPayPalUrlConfig, onReady: (payPalApi: any) => void): void;
9
- destroyPayPalScript(): void;
10
- private getUrlForConfig;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<PayPalScriptService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<PayPalScriptService>;
13
- }
@@ -1,4 +0,0 @@
1
- export declare class BillingUtils {
2
- private static readonly CURRENCY_SYMBOLS;
3
- static convert2AmountWithCurrency(amount: number | string, currency: string): string;
4
- }
@@ -1,11 +0,0 @@
1
- export declare function getAppSettingsById(id: any): any;
2
- export declare function getAppSettingsByName(name: any): any;
3
- export interface ICurrentApp {
4
- type: number;
5
- root: string;
6
- one: any;
7
- oneUrl: string;
8
- }
9
- export declare function getCurrentApp(): ICurrentApp;
10
- export declare const AppName: string;
11
- export declare const AppSettings: any;
@@ -1,7 +0,0 @@
1
- export declare const AppCoreSettings: any;
2
- export declare const AppVersion: string;
3
- export declare const IsDevMode: boolean;
4
- export declare const IsProdMode: boolean;
5
- export declare const ClientApps: any;
6
- export declare const ApiUrl: string;
7
- export declare function formatUrl(url: string): string;
@@ -1,11 +0,0 @@
1
- export declare const dateTimeFormats: {
2
- medium: string;
3
- };
4
- export declare const dateFormats: {
5
- medium: string;
6
- short: string;
7
- };
8
- export declare const timeFormats: {
9
- medium: string;
10
- short: string;
11
- };
@@ -1,11 +0,0 @@
1
- export declare const GAEvents: {
2
- login: {
3
- signin: string;
4
- signin_success: string;
5
- signup: string;
6
- signup_success: string;
7
- };
8
- };
9
- export declare const GABillingEvents: {
10
- payment: string;
11
- };
@@ -1,8 +0,0 @@
1
- export declare const AppContextStorageKeys: {
2
- version: string;
3
- currency: string;
4
- countries: string;
5
- languages: string;
6
- timezones: string;
7
- usStates: string;
8
- };
@@ -1,16 +0,0 @@
1
- export declare class Convert {
2
- private static pad;
3
- static enumToString(enumeration: any, value: any): string;
4
- static enumToArray(enumeration: any, valueAsInt?: boolean, notIncludes?: any): {
5
- value: number;
6
- text: any;
7
- }[] | {
8
- value: string;
9
- text: any;
10
- }[];
11
- static stringToArray(str: string, separator?: string): string[];
12
- static stringToIntArray(str: string, separator?: string): number[];
13
- static company2String(comp: any): string;
14
- static address2String(adr: any): string;
15
- static stringToBoolean(value: any): boolean;
16
- }
@@ -1,5 +0,0 @@
1
- export declare class DateConvert {
2
- static toDate(date: Date | number | string): Date;
3
- static toFormattedDate(date: Date | number | string, formatStr?: string): string;
4
- static utcToLocal(dirtyDate: any): Date;
5
- }
@@ -1 +0,0 @@
1
- export declare function tzParseTimezone(timezoneString: any, date: any, isUtcDate: any): any;
@@ -1,5 +0,0 @@
1
- /**
2
- * Returns the [year, month, day, hour, minute, seconds] tokens of the provided
3
- * `date` as it will be rendered in the `timeZone`.
4
- */
5
- export declare function tzTokenizeDate(date: any, timeZone: any): any[];
@@ -1,4 +0,0 @@
1
- import { HTMLBeautifyOptions } from 'js-beautify';
2
- export declare class XmlFormatter {
3
- static toPrettyXML(s: string, options?: HTMLBeautifyOptions): string;
4
- }
@@ -1,15 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "@angular/router";
5
- import * as i3 from "ngx-toastr";
6
- import * as i4 from "./localization/settings.module";
7
- import * as i5 from "./localization/localization.module";
8
- export declare let InjectorInstance: Injector;
9
- export declare class AnatolyCoreModule {
10
- private injector;
11
- constructor(injector: Injector);
12
- static ɵfac: i0.ɵɵFactoryDeclaration<AnatolyCoreModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnatolyCoreModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.ToastrModule, typeof i4.LocalizationSettingsModule, typeof i5.LocalizationModule], [typeof i2.RouterModule, typeof i4.LocalizationSettingsModule, typeof i5.LocalizationModule]>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<AnatolyCoreModule>;
15
- }
package/lib/core/dom.d.ts DELETED
@@ -1,17 +0,0 @@
1
- export declare class DOM {
2
- private static dir;
3
- static first(elements: HTMLElement[]): HTMLElement;
4
- static any(elements: HTMLElement[]): boolean;
5
- static parent(elem: HTMLElement): HTMLElement;
6
- static parents(elem: HTMLElement, selector?: any): any[];
7
- static findInDocument(selector: string): HTMLElement[];
8
- static find(elem: any, selector: string): HTMLElement[];
9
- static remove(nodes: any): void;
10
- static findAndRemove(element: any, selector: any): void;
11
- static show(elem: any): void;
12
- static hide(elem: any): void;
13
- static each(selector: any, action: any): void;
14
- static addClass(elem: Node | Element, classNames: any): void;
15
- static removeClass(elem: Node | Element, classNames: any): void;
16
- static hasClass(elem: Node | Element, className: any): void;
17
- }
@@ -1,34 +0,0 @@
1
- export declare enum DiscountCodeType {
2
- Standard = 1,
3
- UseOnce = 2
4
- }
5
- export declare enum DiscountCodeStatus {
6
- Exist = 1,
7
- NotFound = 2,
8
- AlreadyUsed = 3
9
- }
10
- export declare enum PaymentType {
11
- FullPayment = 1,
12
- WeeklyPayment = 2,
13
- BiWeeklyPayment = 3,
14
- MonthlyPayment = 4
15
- }
16
- export declare enum PaymentMethod {
17
- None = 1,
18
- Wallet = 2,
19
- CreditCard = 3,
20
- PayPal = 4,
21
- Stripe = 5,
22
- Venmo = 6,
23
- ApplePay = 7,
24
- GooglePay = 8
25
- }
26
- export declare enum PaymentStage {
27
- External = 1,
28
- Internal = 2
29
- }
30
- export declare enum SubscriptionProvider {
31
- Product = 1,
32
- PayPal = 2,
33
- Stripe = 3
34
- }
@@ -1,17 +0,0 @@
1
- export declare enum DataViewType {
2
- Grid = "grid",
3
- List = "list",
4
- Table = "table"
5
- }
6
- export declare enum PublishStatus {
7
- Draft = 1,//viewable by owner ONLY
8
- PendingReview = 2,//via RequestPublishing
9
- Published = 3,//viewable by everyone
10
- Archived = 4
11
- }
12
- export declare enum ModerationStatus {
13
- Draft = 1,//item is saved
14
- PendingReview = 2,//item is in review
15
- Approved = 3,//item is approved by Moderator
16
- Rejected = 4
17
- }
@@ -1,2 +0,0 @@
1
- export * from './billing';
2
- export * from './enums';
@@ -1,40 +0,0 @@
1
- export * from './consts/app-settings';
2
- export * from './consts/core-settings';
3
- export * from './consts/formats';
4
- export * from './consts/ga';
5
- export * from './converts/convert';
6
- export * from './converts/dateConvert';
7
- export * from './converts/xmlFormatter';
8
- export * from './enums/billing';
9
- export * from './enums/enums';
10
- export * from './go/go.service';
11
- export * from './go/apps-go.service';
12
- export * from './interceptors/httpInterceptor';
13
- export * from './guards/once-import.guard';
14
- export * from './guards/starter.guard';
15
- export * from './localization/localize.pipe';
16
- export * from './localization/localization.service';
17
- export * from './localization/settings.module';
18
- export * from './localization/localization.module';
19
- export * from './localization/utils';
20
- export * from './logging/globalErrorHandler';
21
- export * from './logging/logging.service';
22
- export * from './notifications/alerts';
23
- export * from './notifications/interfaces/notification';
24
- export * from './notifications/services/notification-service';
25
- export * from './performance/stopwatch';
26
- export * from './services/appcontext.service';
27
- export * from './services/browser.service';
28
- export * from './services/dm.service';
29
- export * from './services/google-analytics.service';
30
- export * from './services/idle.service';
31
- export * from './services/loading.service';
32
- export * from './services/script.service';
33
- export * from './services/starter.service';
34
- export * from './services/web-storage.service';
35
- export * from './dom';
36
- export * from './guid';
37
- export * from './is';
38
- export * from './subs';
39
- export * from './utils/qsutils';
40
- export * from './utils/utils';
@@ -1,16 +0,0 @@
1
- import { ActivatedRoute, Router } from '@angular/router';
2
- import { GoServiceBase } from './go.service';
3
- import { LoggingService } from '../logging/logging.service';
4
- import { AuthService } from '../../iam/services/auth.service';
5
- import * as i0 from "@angular/core";
6
- export declare class AppsGoServiceBase extends GoServiceBase {
7
- protected route: ActivatedRoute;
8
- protected router: Router;
9
- protected authService: AuthService;
10
- protected logger: LoggingService;
11
- constructor(route: ActivatedRoute, router: Router, authService: AuthService, logger: LoggingService);
12
- private redirectToUrl;
13
- redirect2App(redirectTo: any, path?: any, params?: any, inNewTab?: boolean, action?: any): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<AppsGoServiceBase, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<AppsGoServiceBase>;
16
- }
@@ -1,25 +0,0 @@
1
- import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
2
- import { ICurrentApp } from '../consts/app-settings';
3
- import * as i0 from "@angular/core";
4
- export declare class GoServiceBase {
5
- protected route: ActivatedRoute;
6
- protected router: Router;
7
- protected isDevMode: boolean;
8
- protected currentApp: ICurrentApp;
9
- constructor(route: ActivatedRoute, router: Router);
10
- private internalInit;
11
- getHomeUrl(): string;
12
- navigate(commands: any[], extras?: NavigationExtras, reload?: boolean): void;
13
- homeReload(): void;
14
- locationReload(): void;
15
- home(): void;
16
- accountClosed(): void;
17
- error(): void;
18
- error401(): void;
19
- error402(): void;
20
- error403(): void;
21
- error404(): void;
22
- error500(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<GoServiceBase, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<GoServiceBase>;
25
- }
@@ -1 +0,0 @@
1
- export declare function throwIfAlreadyLoaded(parentModule: any, moduleName: string): void;