jconsumer-shared 0.0.2 → 1.0.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 (128) hide show
  1. package/esm2022/lib/account-service.mjs +170 -0
  2. package/esm2022/lib/auth-service.mjs +163 -0
  3. package/esm2022/lib/booking-service.mjs +480 -0
  4. package/esm2022/lib/calendar/date-time/datetime-processor.service.mjs +448 -0
  5. package/esm2022/lib/common.service.mjs +188 -0
  6. package/esm2022/lib/confirm/confirm-box.component.mjs +159 -0
  7. package/esm2022/lib/confirm/confirm-box.module.mjs +62 -0
  8. package/esm2022/lib/consumer-service.mjs +780 -0
  9. package/esm2022/lib/currency-service.mjs +12 -0
  10. package/esm2022/lib/environment.service.mjs +23 -0
  11. package/esm2022/lib/error-message.module.mjs +23 -0
  12. package/esm2022/lib/error-message.service.mjs +22 -0
  13. package/esm2022/lib/file-service.mjs +235 -0
  14. package/esm2022/lib/form-message/field-error-display/field-error-display.component.mjs +21 -0
  15. package/esm2022/lib/form-message/form-message-display.module.mjs +35 -0
  16. package/esm2022/lib/form-message/form-message-display.service.mjs +44 -0
  17. package/esm2022/lib/form-message/form-success-display/form-success-display.component.mjs +18 -0
  18. package/esm2022/lib/group-storage.service.mjs +66 -0
  19. package/esm2022/lib/i8n.module.mjs +43 -0
  20. package/esm2022/lib/injector-resolver.mjs +28 -0
  21. package/esm2022/lib/local-storage.service.mjs +77 -0
  22. package/esm2022/lib/media-service.mjs +49 -0
  23. package/esm2022/lib/order.service.mjs +16 -1
  24. package/esm2022/lib/payment/modes/payment-modes.component.mjs +35 -0
  25. package/esm2022/lib/payment/modes/payment-modes.module.mjs +24 -0
  26. package/esm2022/lib/payment/payment.module.mjs +26 -0
  27. package/esm2022/lib/paytm.service.mjs +131 -0
  28. package/esm2022/lib/phone-input/phone-input.component.mjs +131 -0
  29. package/esm2022/lib/phone-input/phone-input.module.mjs +24 -0
  30. package/esm2022/lib/pipes/autolink/autolink.module.mjs +20 -0
  31. package/esm2022/lib/pipes/autolink/autolink.pipe.mjs +22 -0
  32. package/esm2022/lib/pipes/capitalize/capitalize.module.mjs +20 -0
  33. package/esm2022/lib/pipes/capitalize/capitalize.pipe.mjs +18 -0
  34. package/esm2022/lib/pipes/date-format/date-format.module.mjs +19 -0
  35. package/esm2022/lib/pipes/date-format/date-format.pipe.mjs +42 -0
  36. package/esm2022/lib/pipes/filter/filter.pipe.mjs +24 -0
  37. package/esm2022/lib/pipes/limit-to/limitTo.pipe.mjs +18 -0
  38. package/esm2022/lib/pipes/safe-html/safehtml.module.mjs +20 -0
  39. package/esm2022/lib/pipes/safe-html/safehtml.pipe.mjs +19 -0
  40. package/esm2022/lib/project-constants.mjs +310 -0
  41. package/esm2022/lib/project-messages.mjs +146 -0
  42. package/esm2022/lib/questionaire/edit/questionnaire.component.mjs +1427 -0
  43. package/esm2022/lib/questionaire/edit/questionnaire.module.mjs +78 -0
  44. package/esm2022/lib/questionaire/questionaire-service.mjs +92 -0
  45. package/esm2022/lib/razorpay.service.mjs +157 -0
  46. package/esm2022/lib/request-dialog/request-dialog.component.mjs +29 -0
  47. package/esm2022/lib/request-dialog/request-dialog.module.mjs +24 -0
  48. package/esm2022/lib/session-storage.service.mjs +57 -0
  49. package/esm2022/lib/shared-account.guard.mjs +41 -0
  50. package/esm2022/lib/shared-account.resolver.mjs +22 -0
  51. package/esm2022/lib/shared.service.mjs +107 -10
  52. package/esm2022/lib/showuploadfile/showuploadfile.component.mjs +61 -0
  53. package/esm2022/lib/showuploadfile/showuploadfile.module.mjs +28 -0
  54. package/esm2022/lib/spinner/loading-spinner.component.mjs +22 -0
  55. package/esm2022/lib/spinner/loading-spinner.module.mjs +28 -0
  56. package/esm2022/lib/storage.service.mjs +75 -0
  57. package/esm2022/lib/theme.service.mjs +30 -0
  58. package/esm2022/lib/timezone-converter.mjs +49 -0
  59. package/esm2022/lib/toast.service.mjs +2 -2
  60. package/esm2022/lib/twilio-service.mjs +466 -0
  61. package/esm2022/lib/word-processor.service.mjs +181 -0
  62. package/esm2022/public-api.mjs +58 -1
  63. package/fesm2022/jconsumer-shared.mjs +6989 -39
  64. package/fesm2022/jconsumer-shared.mjs.map +1 -1
  65. package/jconsumer-shared-1.0.0.tgz +0 -0
  66. package/lib/account-service.d.ts +48 -0
  67. package/lib/auth-service.d.ts +44 -0
  68. package/lib/booking-service.d.ts +101 -0
  69. package/lib/calendar/date-time/datetime-processor.service.d.ts +120 -0
  70. package/lib/common.service.d.ts +20 -0
  71. package/lib/confirm/confirm-box.component.d.ts +43 -0
  72. package/lib/confirm/confirm-box.module.d.ts +16 -0
  73. package/lib/consumer-service.d.ts +178 -0
  74. package/lib/currency-service.d.ts +4 -0
  75. package/lib/environment.service.d.ts +9 -0
  76. package/lib/error-message.module.d.ts +7 -0
  77. package/lib/error-message.service.d.ts +5 -0
  78. package/lib/file-service.d.ts +29 -0
  79. package/lib/form-message/field-error-display/field-error-display.component.d.ts +8 -0
  80. package/lib/form-message/form-message-display.module.d.ts +10 -0
  81. package/lib/form-message/form-message-display.service.d.ts +13 -0
  82. package/lib/form-message/form-success-display/form-success-display.component.d.ts +7 -0
  83. package/lib/group-storage.service.d.ts +14 -0
  84. package/lib/i8n.module.d.ts +12 -0
  85. package/lib/injector-resolver.d.ts +2 -0
  86. package/lib/local-storage.service.d.ts +34 -0
  87. package/lib/media-service.d.ts +9 -0
  88. package/lib/order.service.d.ts +4 -0
  89. package/lib/payment/modes/payment-modes.component.d.ts +15 -0
  90. package/lib/payment/modes/payment-modes.module.d.ts +9 -0
  91. package/lib/payment/payment.module.d.ts +7 -0
  92. package/lib/paytm.service.d.ts +13 -0
  93. package/lib/phone-input/phone-input.component.d.ts +27 -0
  94. package/lib/phone-input/phone-input.module.d.ts +9 -0
  95. package/lib/pipes/autolink/autolink.module.d.ts +8 -0
  96. package/lib/pipes/autolink/autolink.pipe.d.ts +7 -0
  97. package/lib/pipes/capitalize/capitalize.module.d.ts +8 -0
  98. package/lib/pipes/capitalize/capitalize.pipe.d.ts +7 -0
  99. package/lib/pipes/date-format/date-format.module.d.ts +8 -0
  100. package/lib/pipes/date-format/date-format.pipe.d.ts +12 -0
  101. package/lib/pipes/filter/filter.pipe.d.ts +7 -0
  102. package/lib/pipes/limit-to/limitTo.pipe.d.ts +7 -0
  103. package/lib/pipes/safe-html/safehtml.module.d.ts +8 -0
  104. package/lib/pipes/safe-html/safehtml.pipe.d.ts +10 -0
  105. package/lib/project-constants.d.ts +227 -0
  106. package/lib/project-messages.d.ts +1 -0
  107. package/lib/questionaire/edit/questionnaire.component.d.ts +154 -0
  108. package/lib/questionaire/edit/questionnaire.module.d.ts +20 -0
  109. package/lib/questionaire/questionaire-service.d.ts +28 -0
  110. package/lib/razorpay.service.d.ts +26 -0
  111. package/lib/request-dialog/request-dialog.component.d.ts +11 -0
  112. package/lib/request-dialog/request-dialog.module.d.ts +9 -0
  113. package/lib/session-storage.service.d.ts +26 -0
  114. package/lib/shared-account.guard.d.ts +11 -0
  115. package/lib/shared-account.resolver.d.ts +10 -0
  116. package/lib/shared.service.d.ts +43 -7
  117. package/lib/showuploadfile/showuploadfile.component.d.ts +21 -0
  118. package/lib/showuploadfile/showuploadfile.module.d.ts +9 -0
  119. package/lib/spinner/loading-spinner.component.d.ts +11 -0
  120. package/lib/spinner/loading-spinner.module.d.ts +9 -0
  121. package/lib/storage.service.d.ts +16 -0
  122. package/lib/theme.service.d.ts +10 -0
  123. package/lib/timezone-converter.d.ts +8 -0
  124. package/lib/twilio-service.d.ts +60 -0
  125. package/lib/word-processor.service.d.ts +80 -0
  126. package/package.json +1 -1
  127. package/public-api.d.ts +57 -0
  128. package/jconsumer-shared-0.0.2.tgz +0 -0
@@ -0,0 +1,154 @@
1
+ import { Location } from '@angular/common';
2
+ import { ElementRef, EventEmitter, OnChanges, OnInit } from '@angular/core';
3
+ import { ActivatedRoute } from '@angular/router';
4
+ import { ButtonsConfig, Image, ModalGalleryService } from '@ks89/angular-modal-gallery';
5
+ import { MatDialog } from '@angular/material/dialog';
6
+ import { Subscription } from 'rxjs';
7
+ import { QuestionaireService } from '../questionaire-service';
8
+ import { LocalStorageService } from '../../local-storage.service';
9
+ import { FileService } from '../../file-service';
10
+ import { CommonService } from '../../common.service';
11
+ import { ToastService } from '../../toast.service';
12
+ import { DateTimeProcessor } from '../../calendar/date-time/datetime-processor.service';
13
+ import { ErrorMessagingService } from '../../error-message.service';
14
+ import { WordProcessor } from '../../word-processor.service';
15
+ import { SharedService } from '../../shared.service';
16
+ import * as i0 from "@angular/core";
17
+ export declare class QuestionnaireComponent implements OnInit, OnChanges {
18
+ private activated_route;
19
+ private wordProcessor;
20
+ private lStorageService;
21
+ private dateProcessor;
22
+ dialog: MatDialog;
23
+ private fileService;
24
+ private commonService;
25
+ private questionaireService;
26
+ private errorService;
27
+ private toastService;
28
+ private modalGalleryService;
29
+ private sharedService;
30
+ private location;
31
+ questionnaireList: any;
32
+ source: any;
33
+ accountId: any;
34
+ questionAnswers: any;
35
+ customerDetails: any;
36
+ uuid: any;
37
+ type: any;
38
+ waitlistStatus: any;
39
+ orderStatus: any;
40
+ donationDetails: any;
41
+ service: any;
42
+ mode: any;
43
+ fileChanged: EventEmitter<any>;
44
+ returnAnswers: EventEmitter<any>;
45
+ tempType: any;
46
+ bookingType: any;
47
+ answers: any;
48
+ showDataGrid: any;
49
+ selectedMessage: any;
50
+ apiError: any;
51
+ params: any;
52
+ fileuploadpreAnswers: any;
53
+ loading: boolean;
54
+ buttonDisable: boolean;
55
+ questions: any;
56
+ selectedDocs: any;
57
+ documentsToUpload: any;
58
+ subscription: Subscription;
59
+ uploadFilesTemp: any;
60
+ filestoUpload: any;
61
+ changeHappened: boolean;
62
+ uploadedFiles: any;
63
+ uploadedImages: any;
64
+ bookingDetails: any;
65
+ file2: ElementRef;
66
+ customButtonsFontAwesomeConfig: ButtonsConfig;
67
+ image_list_popup: Image[];
68
+ questionnaire_heading: string;
69
+ customer_label: string;
70
+ editQuestionnaire: boolean;
71
+ audioVideoFiles: any;
72
+ groupedQnr: any;
73
+ dataGridColumns: any;
74
+ dataGridColumnsAnswerList: any;
75
+ updatedGridIndex: any;
76
+ newTimeDateFormat: string;
77
+ qnrStatus: string;
78
+ comments: any;
79
+ tday: Date;
80
+ minday: Date;
81
+ dataGridListColumns: any;
82
+ showqnr: boolean;
83
+ item: any;
84
+ showItem: boolean;
85
+ totalPrice: any;
86
+ itemLength: any;
87
+ itemArray: any;
88
+ dataGridList: any;
89
+ id: number;
90
+ post_Data: any;
91
+ dgList: any;
92
+ sequenceId: any;
93
+ finalObjectList: any;
94
+ showservice: boolean;
95
+ quesStore: any;
96
+ allList: string;
97
+ popSearches: any;
98
+ serviceTotalPrice: number;
99
+ editableItem: any;
100
+ cdnPath: string;
101
+ constructor(activated_route: ActivatedRoute, wordProcessor: WordProcessor, lStorageService: LocalStorageService, dateProcessor: DateTimeProcessor, dialog: MatDialog, fileService: FileService, commonService: CommonService, questionaireService: QuestionaireService, errorService: ErrorMessagingService, toastService: ToastService, modalGalleryService: ModalGalleryService, sharedService: SharedService, location: Location);
102
+ ngOnDestroy(): void;
103
+ ngOnChanges(): void;
104
+ ngOnInit(): void;
105
+ disableField(): void;
106
+ asIsOrder(a: any, b: any): number;
107
+ groupQuestionsBySection(): void;
108
+ setValidateError(errors: any): void;
109
+ getAnswers(answerData: any, type?: any): void;
110
+ filesSelected(event: any, question: any, document: any): void;
111
+ changeImageSelected(question: any, document: any): void;
112
+ isNumeric(evt: any): boolean;
113
+ onSubmit(keytype?: any): void;
114
+ getDate(date: any): Date;
115
+ listChange(ev: any, value: any, question: any, column?: any): void;
116
+ isChecked(value: any, question: any, column?: any): boolean;
117
+ booleanChange(ev: any, value: any, question: any, column?: any): void;
118
+ isBooleanChecked(value: any, question: any, column?: any): boolean;
119
+ submitQuestionnaire(passData: any): void;
120
+ uploadAudioVideo(data: any, type: any): void;
121
+ goBack(): void;
122
+ getQuestion(question: any): any;
123
+ validateQuestionnaire(src?: any): void;
124
+ getImg(question: any, document: any): any;
125
+ onButtonBeforeHook(event: any): void;
126
+ openAttachmentGallery(question: any, document: any): void;
127
+ openImageModalRow(image: Image): void;
128
+ private getCurrentIndexCustomLayout;
129
+ openModal(id: number, imageIndex: number, buttonsConfig: ButtonsConfig): void;
130
+ showAudioVideoFile(file: any): void;
131
+ editQnr(): void;
132
+ getDocuments(question: any): any;
133
+ showProviderText(question: any): boolean;
134
+ successGoback(): void;
135
+ showDataGridAddSection(question: any, value: any): void;
136
+ showDataGridAddSectionn(question: any, value: any): void;
137
+ saveDataGridColumn(question: any): void;
138
+ editDataGrid(question: any, column: any): void;
139
+ deleteDataGrid(question: any, column: any): void;
140
+ cancelAddorUpdate(question: any): void;
141
+ getColumnType(columns: any, column: any): any;
142
+ getSectionCount(): number;
143
+ getBoolValue(value: any): "Yes" | "No";
144
+ getMaxdate(data: any): any;
145
+ getMindate(data: any): any;
146
+ reverse(s: string): string;
147
+ qnrPopup(question: any, value: any): void;
148
+ increment(item: any): void;
149
+ getItemQuantity(item: any): any;
150
+ decrement(removingItem: any): void;
151
+ disableInput(): boolean;
152
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuestionnaireComponent, never>;
153
+ static ɵcmp: i0.ɵɵComponentDeclaration<QuestionnaireComponent, "app-questionnaire", never, { "questionnaireList": { "alias": "questionnaireList"; "required": false; }; "source": { "alias": "source"; "required": false; }; "accountId": { "alias": "accountId"; "required": false; }; "questionAnswers": { "alias": "questionAnswers"; "required": false; }; "customerDetails": { "alias": "customerDetails"; "required": false; }; "uuid": { "alias": "uuid"; "required": false; }; "type": { "alias": "type"; "required": false; }; "waitlistStatus": { "alias": "waitlistStatus"; "required": false; }; "orderStatus": { "alias": "orderStatus"; "required": false; }; "donationDetails": { "alias": "donationDetails"; "required": false; }; "service": { "alias": "service"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "tempType": { "alias": "tempType"; "required": false; }; "bookingType": { "alias": "bookingType"; "required": false; }; }, { "fileChanged": "fileChanged"; "returnAnswers": "returnAnswers"; }, never, never, false, never>;
154
+ }
@@ -0,0 +1,20 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./questionnaire.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "../../spinner/loading-spinner.module";
6
+ import * as i5 from "../../pipes/capitalize/capitalize.module";
7
+ import * as i6 from "@ks89/angular-modal-gallery";
8
+ import * as i7 from "@angular/material/datepicker";
9
+ import * as i8 from "@angular/material/checkbox";
10
+ import * as i9 from "@angular/material/slide-toggle";
11
+ import * as i10 from "@angular/material/core";
12
+ import * as i11 from "@angular/material/select";
13
+ import * as i12 from "../../pipes/safe-html/safehtml.module";
14
+ import * as i13 from "../../error-message.module";
15
+ import * as i14 from "@angular/material/icon";
16
+ export declare class QuestionnaireModule {
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuestionnaireModule, never>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<QuestionnaireModule, [typeof i1.QuestionnaireComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.LoadingSpinnerModule, typeof i5.CapitalizeFirstPipeModule, typeof i6.GalleryModule, typeof i7.MatDatepickerModule, typeof i8.MatCheckboxModule, typeof i9.MatSlideToggleModule, typeof i10.MatOptionModule, typeof i11.MatSelectModule, typeof i12.SafeHtmlModule, typeof i13.ErrrorMessageModule, typeof i14.MatIconModule], [typeof i1.QuestionnaireComponent]>;
19
+ static ɵinj: i0.ɵɵInjectorDeclaration<QuestionnaireModule>;
20
+ }
@@ -0,0 +1,28 @@
1
+ import { Observable } from "rxjs";
2
+ import { ServiceMeta } from "../service-meta";
3
+ import * as i0 from "@angular/core";
4
+ export declare class QuestionaireService {
5
+ private servicemeta;
6
+ private subject;
7
+ getMessage(): Observable<any>;
8
+ sendMessage(message: any): void;
9
+ constructor(servicemeta: ServiceMeta);
10
+ validateConsumerQuestionnaire(body: any, accountId: string): Observable<ArrayBuffer>;
11
+ validateConsumerQuestionnaireResbumit(body: any, accountId: string): Observable<ArrayBuffer>;
12
+ consumerOrderQnrUploadStatusUpdate(uid: string, account: string, data: any): Observable<ArrayBuffer>;
13
+ consumerDonationQnrUploadStatusUpdate(uid: string, account: string, data: any): Observable<ArrayBuffer>;
14
+ consumerApptQnrUploadStatusUpdate(uid: string, account: string, data: any): Observable<ArrayBuffer>;
15
+ consumerWaitlistQnrUploadStatusUpdate(uid: string, account: string, data: any): Observable<ArrayBuffer>;
16
+ videoaudioS3Upload(file: any, url: any): Observable<ArrayBuffer>;
17
+ resubmitConsumerWaitlistQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
18
+ submitConsumerWaitlistQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
19
+ resubmitConsumerDonationQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
20
+ resubmitConsumerApptQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
21
+ submitConsumerApptQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
22
+ resubmitConsumerOrderQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
23
+ submitConsumerOrderQuestionnaire(body: any, uuid: string, accountId: string): Observable<ArrayBuffer>;
24
+ validateConsumerIvrQuestionnaire(body: any, id: string): Observable<ArrayBuffer>;
25
+ submitDonationQuestionnaire(uuid: string, body: any, account_id: string): Observable<ArrayBuffer>;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<QuestionaireService, never>;
27
+ static ɵprov: i0.ɵɵInjectableDeclaration<QuestionaireService>;
28
+ }
@@ -0,0 +1,26 @@
1
+ import { ServiceMeta } from './service-meta';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RazorpayService {
4
+ private servicemeta;
5
+ status_check: any;
6
+ private paidStatus;
7
+ currentStatus: import("rxjs").Observable<string>;
8
+ paymentModes: {
9
+ method: string;
10
+ }[];
11
+ constructor(servicemeta: ServiceMeta);
12
+ changePaidStatus(value: string): void;
13
+ onReloadPage(): void;
14
+ updateResult(payload: any, accountId?: any): import("rxjs").Observable<ArrayBuffer>;
15
+ updateRazorPay(payload: any, accountId?: any): Promise<unknown>;
16
+ initializePayment(pData: any, accountId: any, referrer: any, type?: any): void;
17
+ get nativeWindow(): ICustomWindow;
18
+ getWindow(): any;
19
+ loadRazorpayScript(pData: any, isfrom: any): HTMLScriptElement;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<RazorpayService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<RazorpayService>;
22
+ }
23
+ export interface ICustomWindow extends Window {
24
+ Razorpay: any;
25
+ __custom_global_stuff: string;
26
+ }
@@ -0,0 +1,11 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RequestDialogComponent {
4
+ dialogRef: MatDialogRef<RequestDialogComponent>;
5
+ data: any;
6
+ mode: string;
7
+ constructor(dialogRef: MatDialogRef<RequestDialogComponent>, data: any);
8
+ dismissModal(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequestDialogComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<RequestDialogComponent, "app-request-dialog", never, {}, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./request-dialog.component";
3
+ import * as i2 from "@angular/material/dialog";
4
+ import * as i3 from "@angular/common";
5
+ export declare class RequestDialogModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequestDialogModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RequestDialogModule, [typeof i1.RequestDialogComponent], [typeof i2.MatDialogModule, typeof i3.CommonModule], [typeof i1.RequestDialogComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<RequestDialogModule>;
9
+ }
@@ -0,0 +1,26 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SessionStorageService {
3
+ constructor();
4
+ /**
5
+ * Method to set an item on session storage
6
+ * @param itemname
7
+ * @param itemvalue
8
+ */
9
+ setitemOnSessionStorage(itemname: string, itemvalue: any): void;
10
+ /**
11
+ * Method to get an item from session storage
12
+ * @param itemname
13
+ */
14
+ getitemfromSessionStorage(itemname: string): any;
15
+ /**
16
+ * Method to remove an item from session storage
17
+ * @param itemname
18
+ */
19
+ removeitemfromSessionStorage(itemname: string): void;
20
+ /**
21
+ * Method to clear all the items from session storage
22
+ */
23
+ clearSessionStorage(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<SessionStorageService, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<SessionStorageService>;
26
+ }
@@ -0,0 +1,11 @@
1
+ import { CanLoad, Route } from "@angular/router";
2
+ import { SharedAccountResolver } from "./shared-account.resolver";
3
+ import { Observable } from "rxjs";
4
+ import * as i0 from "@angular/core";
5
+ export declare class SharedAccountGuard implements CanLoad {
6
+ private accountResolver;
7
+ constructor(accountResolver: SharedAccountResolver);
8
+ canLoad(route: Route): Observable<boolean> | Promise<boolean> | boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedAccountGuard, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<SharedAccountGuard>;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
2
+ import { AccountService } from './account-service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SharedAccountResolver implements Resolve<any> {
5
+ private accountService;
6
+ constructor(accountService: AccountService);
7
+ resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<unknown>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedAccountResolver, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<SharedAccountResolver>;
10
+ }
@@ -1,5 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class SharedService {
3
+ environment: any;
3
4
  accountID: string;
4
5
  customID: string;
5
6
  templateJSON: any;
@@ -8,23 +9,58 @@ export declare class SharedService {
8
9
  apiEndPoint: string | undefined;
9
10
  S3EndPoint: string | undefined;
10
11
  SAPath: string | undefined;
12
+ CDNPath: string;
13
+ routeID: string;
14
+ dateFormat: string;
15
+ theme: string;
16
+ accountInfo: any;
17
+ accountConfig: any;
18
+ accountCache$: any;
19
+ templateCache$: any;
20
+ templateLoaded: boolean;
11
21
  constructor();
12
22
  setUniqueID(uniqueId: string): void;
13
23
  getUniqueID(): string;
24
+ setCDNPath(path: string): void;
25
+ getCDNPath(): string;
26
+ getUIPath(): any;
27
+ setUIPath(path: any): void;
28
+ isTemplateLoaded(): boolean;
29
+ setTemplateCache(templateCache: any): void;
30
+ getTemplateCache(): any;
31
+ clearTemplateCache(): void;
32
+ setAccountCache(accountCache: any): void;
33
+ getAccountCache(): any;
34
+ clearAccountCache(): void;
35
+ getI8nPath(): any;
36
+ setI8nPath(path: any): void;
14
37
  setTemplateID(templateID: string): void;
15
38
  getTemplateID(): string;
39
+ getDateFormat(): string;
40
+ setDateFormat(dateFormat: string): void;
16
41
  setTemplateJSON(templateJSON: any): void;
17
- setAccountID(accountID: string): void;
18
- getAccountID(): string;
19
- setCustomID(customID: string): void;
20
- getCustomID(): string;
42
+ getAccountID(): any;
43
+ getCustomID(): any;
21
44
  getTemplateJSON(): any;
22
- getConfigPath(): string | undefined;
45
+ getConfigPath(): string;
23
46
  setSAPath(SAPath: string): void;
24
- getSAPath(): string | undefined;
47
+ getSAPath(): string;
25
48
  setConfigPath(s3EndPoint: string): void;
26
49
  setAPIEndPoint(apiEndPoint: string): void;
27
- getAPIEndPoint(): string | undefined;
50
+ getAPIEndPoint(): string;
51
+ setRouteID(routeID: string): void;
52
+ getRouteID(): string;
53
+ setAccountInfo(accountInfo: any): void;
54
+ getAccountInfo(): any;
55
+ setAccountConfig(config: any): void;
56
+ getAccountConfig(): any;
57
+ /**
58
+ *
59
+ * @param jsonStr_Obj
60
+ */
61
+ getJson(jsonStr_Obj: any): any;
62
+ getTerminologies(): any;
63
+ callMaintanance(): Promise<void>;
28
64
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedService, never>;
29
65
  static ɵprov: i0.ɵɵInjectableDeclaration<SharedService>;
30
66
  }
@@ -0,0 +1,21 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { CommonService } from '../common.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ShowuploadfileComponent implements OnInit {
6
+ private dialogRef;
7
+ private commonService;
8
+ data: any;
9
+ details: any;
10
+ locationImg: any;
11
+ cacheavoider: string;
12
+ title: string;
13
+ type: any;
14
+ theme: any;
15
+ constructor(dialogRef: MatDialogRef<ShowuploadfileComponent>, commonService: CommonService, data: any);
16
+ ngOnInit(): void;
17
+ showimg(imgurl: any): any;
18
+ closeDialog(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowuploadfileComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShowuploadfileComponent, "app-showuploadfile", never, {}, {}, never, never, false, never>;
21
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./showuploadfile.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/dialog";
5
+ export declare class ShowuploadfileModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowuploadfileModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ShowuploadfileModule, [typeof i1.ShowuploadfileComponent], [typeof i2.CommonModule, typeof i3.MatDialogModule], [typeof i1.ShowuploadfileComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<ShowuploadfileModule>;
9
+ }
@@ -0,0 +1,11 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LoadingSpinnerComponent implements OnInit {
4
+ spinnerParams: any;
5
+ diameter: any;
6
+ stroke: any;
7
+ constructor();
8
+ ngOnInit(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadingSpinnerComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoadingSpinnerComponent, "app-common-innerloading-spinner", never, { "spinnerParams": { "alias": "spinnerParams"; "required": false; }; }, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./loading-spinner.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/material/progress-spinner";
5
+ export declare class LoadingSpinnerModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadingSpinnerModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LoadingSpinnerModule, [typeof i1.LoadingSpinnerComponent], [typeof i2.CommonModule, typeof i3.MatProgressSpinnerModule], [typeof i1.LoadingSpinnerComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<LoadingSpinnerModule>;
9
+ }
@@ -0,0 +1,16 @@
1
+ import { ServiceMeta } from './service-meta';
2
+ import * as i0 from "@angular/core";
3
+ export declare class StorageService {
4
+ private servicemeta;
5
+ private storage;
6
+ constructor(servicemeta: ServiceMeta);
7
+ clear(): void;
8
+ set(key: string, value: any): void;
9
+ get(key: string): any;
10
+ getSPConsumer(): import("rxjs").Observable<ArrayBuffer>;
11
+ getProviderConsumer(): Promise<unknown>;
12
+ getSalutationsRest(): import("rxjs").Observable<ArrayBuffer>;
13
+ getSalutations(): Promise<unknown>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
16
+ }
@@ -0,0 +1,10 @@
1
+ import { RendererFactory2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ThemeService {
4
+ private renderer;
5
+ private themeLinkElement;
6
+ constructor(rendererFactory: RendererFactory2);
7
+ loadTheme(themeName: string): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
10
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TimezoneConverter {
3
+ constructor();
4
+ private getTimezoneAbbreviation;
5
+ getZonedTime(message: any): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimezoneConverter, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<TimezoneConverter>;
8
+ }
@@ -0,0 +1,60 @@
1
+ import { ElementRef, RendererFactory2 } from '@angular/core';
2
+ import { Observable, Subject } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TwilioService {
5
+ rendererFactory: RendererFactory2;
6
+ remoteVideo: ElementRef;
7
+ localVideo: ElementRef;
8
+ previewContainer: ElementRef;
9
+ microphone: boolean;
10
+ video: boolean;
11
+ preview: boolean;
12
+ roomParticipants: any;
13
+ participantsCount: number;
14
+ showParticipant: boolean;
15
+ previewTrack: any;
16
+ camDeviceCount: number;
17
+ private renderer;
18
+ cameraMode: string;
19
+ previewTracks: any;
20
+ timerSubject: Subject<any>;
21
+ errorSubject: Subject<any>;
22
+ static signalStrength: any;
23
+ selectedVideoId: string;
24
+ activeCamIndex: any;
25
+ cam1Device: string;
26
+ cam2Device: string;
27
+ activeRoom: any;
28
+ previewTracksClone: any;
29
+ btnClicked: boolean;
30
+ loading: boolean;
31
+ constructor(rendererFactory: RendererFactory2);
32
+ activateTimer(timer: any): void;
33
+ getTimer(): Observable<any>;
34
+ sendError(error: any): void;
35
+ getError(): Observable<any>;
36
+ unmuteVideo(): void;
37
+ muteVideo(): void;
38
+ removePreviewTrackToDom(localTrack: any): void;
39
+ muteAudio(): void;
40
+ unmuteAudio(): void;
41
+ addPreviewTrackToDom(previewTrack: any): void;
42
+ enableVideo(): void;
43
+ disableVideo(): void;
44
+ mute(): void;
45
+ unmute(): void;
46
+ switchCamera(videoDevices: any): void;
47
+ connectToRoom(accessToken: any, options: any, tracks?: any): void;
48
+ networkQualityChanged(networkQualityLevel: any, networkQualityStats: any): void;
49
+ attachTracks(tracks: any, container: any, room: any): void;
50
+ attachParticipantTracks(participant: any, container: any, room: any): void;
51
+ detachTracks(tracks: any): void;
52
+ detachParticipantTracks(participant: any, room: any, _this: any): void;
53
+ stopTracks(tracks: any): void;
54
+ roomJoined(room: any): void;
55
+ removeRemoteParticipantDetails(container: any): void;
56
+ addRemoteParticipantDetails(container: any, participant: any): void;
57
+ disconnect(): void;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<TwilioService, never>;
59
+ static ɵprov: i0.ɵɵInjectableDeclaration<TwilioService>;
60
+ }
@@ -0,0 +1,80 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class WordProcessor {
3
+ TIMEOUT_DELAY_LARGE10: number;
4
+ terminologies: any;
5
+ spterminologies: any;
6
+ constructor();
7
+ /**
8
+ * Method to set the terminlogies for Jaldee
9
+ * @param terminologies
10
+ */
11
+ setTerminologies(terminologies: any): void;
12
+ /**
13
+ * Method to get the terminologies
14
+ */
15
+ getTerminologies(): any;
16
+ /**
17
+ * Method to set the sp terminlogies for Jaldee
18
+ * @param terminology
19
+ */
20
+ setSPTerminologies(terminology: any): void;
21
+ /**
22
+ * Method to get the sp terminologies
23
+ */
24
+ getSPTerminologies(): any;
25
+ /**
26
+ * Method returns the CamelCase
27
+ * @param str text to convert
28
+ */
29
+ toCamelCase(str: any): any;
30
+ /**
31
+ * Convert the first letter to Uppercase
32
+ * @param str
33
+ */
34
+ firstToUpper(str: any): any;
35
+ /**
36
+ * Show/Hide Success or Error Messages
37
+ * @param ob Object to put the message
38
+ * @param message Message to show
39
+ */
40
+ apiSuccessAutoHide(ob: any, message: any): void;
41
+ /**
42
+ * Show error and hide it automatically
43
+ * @param ob Object holds the message
44
+ * @param error Message to be shown
45
+ */
46
+ apiErrorAutoHide(ob: any, error: any): void;
47
+ /**
48
+ * Get the terminology from terminologies
49
+ * @param term
50
+ */
51
+ getTerminologyTerm(term: any, terminologies?: any): any;
52
+ /**
53
+ * Replace the term within the full message
54
+ * @param term term to be replaced
55
+ * @param full_message full message
56
+ */
57
+ removeTerminologyTerm(term: any, full_message: any): any;
58
+ /**
59
+ * Find the terminology
60
+ * @param message
61
+ */
62
+ findTerminologyTerm(message: any): any;
63
+ /**
64
+ * get the message from the messages list
65
+ * @param key identifier for the message
66
+ */
67
+ getProjectMesssages(key: any): any;
68
+ /**
69
+ * Extract error message from the error object
70
+ * @param error error message to shown
71
+ */
72
+ getProjectErrorMesssages(message: any, terminologies?: any): any;
73
+ /**
74
+ * Get the terminology from terminologies
75
+ * @param term
76
+ */
77
+ getSPTerminologyTerm(term: any): any;
78
+ static ɵfac: i0.ɵɵFactoryDeclaration<WordProcessor, never>;
79
+ static ɵprov: i0.ɵɵInjectableDeclaration<WordProcessor>;
80
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jconsumer-shared",
3
- "version": "0.0.2",
3
+ "version": "1.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"