@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260722072620 → 0.8.1-dev.20260722074927

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.
@@ -0,0 +1,113 @@
1
+ import React from 'react';
2
+
3
+ interface Session {
4
+ cid: string;
5
+ contactId?: number;
6
+ fullName?: string;
7
+ truncatedPhone?: string;
8
+ userCurrencyCode?: string;
9
+ marketCode?: string;
10
+ oAuthToken?: string;
11
+ refreshToken?: string;
12
+ }
13
+
14
+ interface ActionResponse<T> {
15
+ isSuccessful?: boolean;
16
+ message?: string;
17
+ errorNumber?: string;
18
+ result?: T;
19
+ }
20
+
21
+ interface QueryResponse<T> {
22
+ isSuccessful?: boolean;
23
+ message?: string;
24
+ errorNumber?: string;
25
+ result?: T[];
26
+ parent?: T;
27
+ count?: number;
28
+ data?: T[];
29
+ }
30
+
31
+ interface SingleResponse<T> {
32
+ isSuccessful?: boolean;
33
+ message?: string;
34
+ errorNumber?: string;
35
+ result?: T;
36
+ }
37
+
38
+ interface ServiceClientInterface {
39
+ baseUrl: string;
40
+ session: any;
41
+ post(path: string, data: any): Promise<ActionResponse<any>>;
42
+ get(path: string, params?: {
43
+ [key: string]: any;
44
+ }): Promise<QueryResponse<any>>;
45
+ getSingle<T>(path: string, params?: {
46
+ [key: string]: any;
47
+ }): Promise<SingleResponse<T>>;
48
+ }
49
+
50
+ interface PageBodyRendererProps {
51
+ rawBody?: string;
52
+ routeParameters?: {
53
+ [key: string]: unknown;
54
+ };
55
+ query?: {
56
+ [key: string]: string;
57
+ };
58
+ session: Session;
59
+ host: string;
60
+ path: string;
61
+ apiBaseUrl: string;
62
+ breadcrumb?: string;
63
+ donotApplyContainerClass?: boolean;
64
+ donotApplyContainerLargeClass?: boolean;
65
+ serviceClient?: ServiceClientInterface;
66
+ assetBaseUrl?: string;
67
+ device?: string;
68
+ widgetRenderer?: any;
69
+ }
70
+ declare const PageBodyRenderer: (props: PageBodyRendererProps) => React.JSX.Element;
71
+
72
+ interface ViewControlProps {
73
+ value?: any;
74
+ controlType?: string;
75
+ format?: string;
76
+ unit?: string;
77
+ width?: string;
78
+ apiBaseUrl?: string;
79
+ assetBaseUrl?: string;
80
+ customProps?: Record<string, unknown>;
81
+ session?: any;
82
+ }
83
+
84
+ declare const ViewControl: (props: ViewControlProps) => React.JSX.Element;
85
+
86
+ declare const ViewControlTypes: {
87
+ lineText: string;
88
+ emailText: string;
89
+ asset: string;
90
+ video: string;
91
+ multilineTextBullets: string;
92
+ boolean: string;
93
+ checkboxInput: string;
94
+ money: string;
95
+ date: string;
96
+ time: string;
97
+ datetime: string;
98
+ number: string;
99
+ multilineText: string;
100
+ multilinetext: string;
101
+ moneyText: string;
102
+ percentage: string;
103
+ status: string;
104
+ statusBg: string;
105
+ progressIndicator: string;
106
+ timeUntilStarts: string;
107
+ timeUntilStartsStyled: string;
108
+ aiGeneratedSummary: string;
109
+ booleanView: string;
110
+ text: string;
111
+ };
112
+
113
+ export { PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes };
@@ -0,0 +1,113 @@
1
+ import React from 'react';
2
+
3
+ interface Session {
4
+ cid: string;
5
+ contactId?: number;
6
+ fullName?: string;
7
+ truncatedPhone?: string;
8
+ userCurrencyCode?: string;
9
+ marketCode?: string;
10
+ oAuthToken?: string;
11
+ refreshToken?: string;
12
+ }
13
+
14
+ interface ActionResponse<T> {
15
+ isSuccessful?: boolean;
16
+ message?: string;
17
+ errorNumber?: string;
18
+ result?: T;
19
+ }
20
+
21
+ interface QueryResponse<T> {
22
+ isSuccessful?: boolean;
23
+ message?: string;
24
+ errorNumber?: string;
25
+ result?: T[];
26
+ parent?: T;
27
+ count?: number;
28
+ data?: T[];
29
+ }
30
+
31
+ interface SingleResponse<T> {
32
+ isSuccessful?: boolean;
33
+ message?: string;
34
+ errorNumber?: string;
35
+ result?: T;
36
+ }
37
+
38
+ interface ServiceClientInterface {
39
+ baseUrl: string;
40
+ session: any;
41
+ post(path: string, data: any): Promise<ActionResponse<any>>;
42
+ get(path: string, params?: {
43
+ [key: string]: any;
44
+ }): Promise<QueryResponse<any>>;
45
+ getSingle<T>(path: string, params?: {
46
+ [key: string]: any;
47
+ }): Promise<SingleResponse<T>>;
48
+ }
49
+
50
+ interface PageBodyRendererProps {
51
+ rawBody?: string;
52
+ routeParameters?: {
53
+ [key: string]: unknown;
54
+ };
55
+ query?: {
56
+ [key: string]: string;
57
+ };
58
+ session: Session;
59
+ host: string;
60
+ path: string;
61
+ apiBaseUrl: string;
62
+ breadcrumb?: string;
63
+ donotApplyContainerClass?: boolean;
64
+ donotApplyContainerLargeClass?: boolean;
65
+ serviceClient?: ServiceClientInterface;
66
+ assetBaseUrl?: string;
67
+ device?: string;
68
+ widgetRenderer?: any;
69
+ }
70
+ declare const PageBodyRenderer: (props: PageBodyRendererProps) => React.JSX.Element;
71
+
72
+ interface ViewControlProps {
73
+ value?: any;
74
+ controlType?: string;
75
+ format?: string;
76
+ unit?: string;
77
+ width?: string;
78
+ apiBaseUrl?: string;
79
+ assetBaseUrl?: string;
80
+ customProps?: Record<string, unknown>;
81
+ session?: any;
82
+ }
83
+
84
+ declare const ViewControl: (props: ViewControlProps) => React.JSX.Element;
85
+
86
+ declare const ViewControlTypes: {
87
+ lineText: string;
88
+ emailText: string;
89
+ asset: string;
90
+ video: string;
91
+ multilineTextBullets: string;
92
+ boolean: string;
93
+ checkboxInput: string;
94
+ money: string;
95
+ date: string;
96
+ time: string;
97
+ datetime: string;
98
+ number: string;
99
+ multilineText: string;
100
+ multilinetext: string;
101
+ moneyText: string;
102
+ percentage: string;
103
+ status: string;
104
+ statusBg: string;
105
+ progressIndicator: string;
106
+ timeUntilStarts: string;
107
+ timeUntilStartsStyled: string;
108
+ aiGeneratedSummary: string;
109
+ booleanView: string;
110
+ text: string;
111
+ };
112
+
113
+ export { PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes };