@fixefy/fixefy-ui-utils 0.0.18 → 0.0.20

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 (167) hide show
  1. package/dist/auth/index.js +89 -0
  2. package/dist/aws/aws_lambda_helper.js +184 -0
  3. package/dist/aws/data_models.js +4 -0
  4. package/dist/aws/index.js +18 -0
  5. package/{dist-types → dist}/commander/index.d.ts +4 -2
  6. package/dist/commander/index.js +390 -0
  7. package/{dist-cjs → dist}/constants/index.d.ts +7 -0
  8. package/{dist-cjs → dist}/constants/index.js +41 -15
  9. package/dist/contents/index.js +154 -0
  10. package/{dist-cjs → dist}/files/index.js +22 -12
  11. package/dist/graphql/index.js +382 -0
  12. package/{dist-cjs → dist}/headers/index.d.ts +2 -4
  13. package/dist/headers/index.js +161 -0
  14. package/dist/images/index.js +18 -0
  15. package/{dist-cjs → dist}/index.d.ts +3 -0
  16. package/dist/index.js +43 -0
  17. package/{dist-cjs → dist}/json/index.js +67 -56
  18. package/{dist-es → dist}/page_context/index.d.ts +14 -0
  19. package/dist/page_context/index.js +742 -0
  20. package/dist/redirect/index.js +31 -0
  21. package/{dist-cjs → dist}/renderer/index.d.ts +1 -1
  22. package/dist/renderer/index.js +125 -0
  23. package/dist/resolvers/index.js +51 -0
  24. package/dist/transform/index.js +96 -0
  25. package/dist/types/index.js +4 -0
  26. package/{dist-cjs → dist}/validate/index.d.ts +1 -1
  27. package/dist/validate/index.js +68 -0
  28. package/package.json +8 -9
  29. package/dist-cjs/auth/index.js +0 -40
  30. package/dist-cjs/auth/index.js.map +0 -1
  31. package/dist-cjs/aws/aws_lambda_helper.js +0 -68
  32. package/dist-cjs/aws/aws_lambda_helper.js.map +0 -1
  33. package/dist-cjs/aws/aws_s3_helper.d.ts +0 -0
  34. package/dist-cjs/aws/aws_s3_helper.js +0 -243
  35. package/dist-cjs/aws/aws_s3_helper.js.map +0 -1
  36. package/dist-cjs/aws/data_models.js +0 -3
  37. package/dist-cjs/aws/data_models.js.map +0 -1
  38. package/dist-cjs/aws/index.js +0 -6
  39. package/dist-cjs/aws/index.js.map +0 -1
  40. package/dist-cjs/commander/index.d.ts +0 -33
  41. package/dist-cjs/commander/index.js +0 -292
  42. package/dist-cjs/commander/index.js.map +0 -1
  43. package/dist-cjs/constants/index.js.map +0 -1
  44. package/dist-cjs/contents/index.js +0 -33
  45. package/dist-cjs/contents/index.js.map +0 -1
  46. package/dist-cjs/files/index.js.map +0 -1
  47. package/dist-cjs/graphql/index.js +0 -338
  48. package/dist-cjs/graphql/index.js.map +0 -1
  49. package/dist-cjs/headers/index.js +0 -103
  50. package/dist-cjs/headers/index.js.map +0 -1
  51. package/dist-cjs/images/index.js +0 -16
  52. package/dist-cjs/images/index.js.map +0 -1
  53. package/dist-cjs/index.js +0 -21
  54. package/dist-cjs/index.js.map +0 -1
  55. package/dist-cjs/json/index.js.map +0 -1
  56. package/dist-cjs/package.json +0 -3
  57. package/dist-cjs/page_context/index.d.ts +0 -248
  58. package/dist-cjs/page_context/index.js +0 -511
  59. package/dist-cjs/page_context/index.js.map +0 -1
  60. package/dist-cjs/redirect/index.js +0 -19
  61. package/dist-cjs/redirect/index.js.map +0 -1
  62. package/dist-cjs/renderer/index.js +0 -67
  63. package/dist-cjs/renderer/index.js.map +0 -1
  64. package/dist-cjs/resolvers/index.js +0 -38
  65. package/dist-cjs/resolvers/index.js.map +0 -1
  66. package/dist-cjs/transform/index.js +0 -44
  67. package/dist-cjs/transform/index.js.map +0 -1
  68. package/dist-cjs/types/index.js +0 -3
  69. package/dist-cjs/types/index.js.map +0 -1
  70. package/dist-cjs/validate/index.js +0 -56
  71. package/dist-cjs/validate/index.js.map +0 -1
  72. package/dist-es/auth/index.d.ts +0 -2
  73. package/dist-es/auth/index.js +0 -38
  74. package/dist-es/auth/index.js.map +0 -1
  75. package/dist-es/aws/aws_lambda_helper.d.ts +0 -5
  76. package/dist-es/aws/aws_lambda_helper.js +0 -60
  77. package/dist-es/aws/aws_lambda_helper.js.map +0 -1
  78. package/dist-es/aws/aws_s3_helper.d.ts +0 -0
  79. package/dist-es/aws/aws_s3_helper.js +0 -243
  80. package/dist-es/aws/aws_s3_helper.js.map +0 -1
  81. package/dist-es/aws/data_models.d.ts +0 -21
  82. package/dist-es/aws/data_models.js +0 -2
  83. package/dist-es/aws/data_models.js.map +0 -1
  84. package/dist-es/aws/index.d.ts +0 -1
  85. package/dist-es/aws/index.js +0 -3
  86. package/dist-es/aws/index.js.map +0 -1
  87. package/dist-es/commander/index.d.ts +0 -33
  88. package/dist-es/commander/index.js +0 -262
  89. package/dist-es/commander/index.js.map +0 -1
  90. package/dist-es/constants/index.d.ts +0 -6
  91. package/dist-es/constants/index.js +0 -86
  92. package/dist-es/constants/index.js.map +0 -1
  93. package/dist-es/contents/index.d.ts +0 -3
  94. package/dist-es/contents/index.js +0 -32
  95. package/dist-es/contents/index.js.map +0 -1
  96. package/dist-es/files/index.d.ts +0 -2
  97. package/dist-es/files/index.js +0 -26
  98. package/dist-es/files/index.js.map +0 -1
  99. package/dist-es/graphql/index.d.ts +0 -38
  100. package/dist-es/graphql/index.js +0 -357
  101. package/dist-es/graphql/index.js.map +0 -1
  102. package/dist-es/headers/index.d.ts +0 -12
  103. package/dist-es/headers/index.js +0 -91
  104. package/dist-es/headers/index.js.map +0 -1
  105. package/dist-es/images/index.d.ts +0 -4
  106. package/dist-es/images/index.js +0 -12
  107. package/dist-es/images/index.js.map +0 -1
  108. package/dist-es/index.d.ts +0 -14
  109. package/dist-es/index.js +0 -17
  110. package/dist-es/index.js.map +0 -1
  111. package/dist-es/json/index.d.ts +0 -7
  112. package/dist-es/json/index.js +0 -144
  113. package/dist-es/json/index.js.map +0 -1
  114. package/dist-es/package.json +0 -3
  115. package/dist-es/page_context/index.js +0 -529
  116. package/dist-es/page_context/index.js.map +0 -1
  117. package/dist-es/redirect/index.d.ts +0 -2
  118. package/dist-es/redirect/index.js +0 -16
  119. package/dist-es/redirect/index.js.map +0 -1
  120. package/dist-es/renderer/index.d.ts +0 -9
  121. package/dist-es/renderer/index.js +0 -61
  122. package/dist-es/renderer/index.js.map +0 -1
  123. package/dist-es/resolvers/index.d.ts +0 -11
  124. package/dist-es/resolvers/index.js +0 -34
  125. package/dist-es/resolvers/index.js.map +0 -1
  126. package/dist-es/transform/index.d.ts +0 -2
  127. package/dist-es/transform/index.js +0 -39
  128. package/dist-es/transform/index.js.map +0 -1
  129. package/dist-es/types/index.d.ts +0 -39
  130. package/dist-es/types/index.js +0 -2
  131. package/dist-es/types/index.js.map +0 -1
  132. package/dist-es/validate/index.d.ts +0 -5
  133. package/dist-es/validate/index.js +0 -48
  134. package/dist-es/validate/index.js.map +0 -1
  135. package/dist-types/auth/index.d.ts +0 -2
  136. package/dist-types/aws/aws_lambda_helper.d.ts +0 -5
  137. package/dist-types/aws/aws_s3_helper.d.ts +0 -0
  138. package/dist-types/aws/data_models.d.ts +0 -21
  139. package/dist-types/aws/index.d.ts +0 -1
  140. package/dist-types/constants/index.d.ts +0 -6
  141. package/dist-types/contents/index.d.ts +0 -3
  142. package/dist-types/files/index.d.ts +0 -2
  143. package/dist-types/graphql/index.d.ts +0 -38
  144. package/dist-types/headers/index.d.ts +0 -12
  145. package/dist-types/images/index.d.ts +0 -4
  146. package/dist-types/index.d.ts +0 -14
  147. package/dist-types/json/index.d.ts +0 -7
  148. package/dist-types/page_context/index.d.ts +0 -248
  149. package/dist-types/redirect/index.d.ts +0 -2
  150. package/dist-types/renderer/index.d.ts +0 -9
  151. package/dist-types/resolvers/index.d.ts +0 -11
  152. package/dist-types/transform/index.d.ts +0 -2
  153. package/dist-types/types/index.d.ts +0 -39
  154. package/dist-types/validate/index.d.ts +0 -5
  155. /package/{dist-cjs → dist}/auth/index.d.ts +0 -0
  156. /package/{dist-cjs → dist}/aws/aws_lambda_helper.d.ts +0 -0
  157. /package/{dist-cjs → dist}/aws/data_models.d.ts +0 -0
  158. /package/{dist-cjs → dist}/aws/index.d.ts +0 -0
  159. /package/{dist-cjs → dist}/contents/index.d.ts +0 -0
  160. /package/{dist-cjs → dist}/files/index.d.ts +0 -0
  161. /package/{dist-cjs → dist}/graphql/index.d.ts +0 -0
  162. /package/{dist-cjs → dist}/images/index.d.ts +0 -0
  163. /package/{dist-cjs → dist}/json/index.d.ts +0 -0
  164. /package/{dist-cjs → dist}/redirect/index.d.ts +0 -0
  165. /package/{dist-cjs → dist}/resolvers/index.d.ts +0 -0
  166. /package/{dist-cjs → dist}/transform/index.d.ts +0 -0
  167. /package/{dist-cjs → dist}/types/index.d.ts +0 -0
@@ -1,248 +0,0 @@
1
- /// <reference types="react" />
2
- import { Theme } from '@mui/material/styles';
3
- declare module '@mui/styles/defaultTheme' {
4
- interface DefaultTheme extends Theme {
5
- }
6
- }
7
- declare module '@mui/material/styles' {
8
- interface Theme {
9
- sizes: Sizes;
10
- }
11
- interface ThemeOptions {
12
- sizes: Sizes;
13
- }
14
- interface Sizes {
15
- sideMenu: {
16
- width: number;
17
- itemHeight: number;
18
- logoHeight: number;
19
- paddingTop: number;
20
- marginBottom: number;
21
- };
22
- hex: number;
23
- hex_node: number;
24
- hex_event: number;
25
- hex_service: number;
26
- hex_structure: number;
27
- header: {
28
- iconTray: number;
29
- height: number;
30
- };
31
- }
32
- interface Palette {
33
- greyscale: Palette['primary'];
34
- redscale: Palette['primary'];
35
- orangescale: Palette['primary'];
36
- goldscale: Palette['primary'];
37
- yellowscale: Palette['primary'];
38
- purplescale: Palette['primary'];
39
- green1scale: Palette['primary'];
40
- green2scale: Palette['primary'];
41
- green3scale: Palette['primary'];
42
- blue1scale: Palette['primary'];
43
- blue2scale: Palette['primary'];
44
- pending: Palette['primary'];
45
- score: ScorePaletteColorOptions;
46
- invoiceAnalysis: InvoiceAnalysisPaletteColorOptions;
47
- status: StatusPaletteColorOptions;
48
- invoiceState: InvoiceStatesPaletteColorOptions;
49
- reconcilationState: RecosStatesPaletteColorOptions;
50
- trends: TrendsPaletteColorOptions;
51
- uploader: UploaderPaletteColorOptions;
52
- snackbar: SnackbarPaletteColorOptions;
53
- notificationStatus: NotificationPaletteColorOptions;
54
- statistics: StatisticsPalleteColorOptions;
55
- typography: TypographyPalleteColorOptions;
56
- priority: PriorityPalleteColorOptions;
57
- colors: ColorsPaletteColorOptions;
58
- }
59
- interface PaletteOptions {
60
- greyscale: PaletteOptions['primary'];
61
- redscale: PaletteOptions['primary'];
62
- orangescale: PaletteOptions['primary'];
63
- goldscale: PaletteOptions['primary'];
64
- yellowscale: PaletteOptions['primary'];
65
- purplescale: PaletteOptions['primary'];
66
- green1scale: PaletteOptions['primary'];
67
- green2scale: PaletteOptions['primary'];
68
- green3scale: PaletteOptions['primary'];
69
- blue1scale: PaletteOptions['primary'];
70
- blue2scale: PaletteOptions['primary'];
71
- pending: PaletteOptions['primary'];
72
- score: ScorePaletteColorOptions;
73
- invoiceAnalysis: InvoiceAnalysisPaletteColorOptions;
74
- trends: TrendsPaletteColorOptions;
75
- uploader: UploaderPaletteColorOptions;
76
- status: StatusPaletteColorOptions;
77
- invoiceState: InvoiceStatesPaletteColorOptions;
78
- reconcilationState: RecosStatesPaletteColorOptions;
79
- snackbar: SnackbarPaletteColorOptions;
80
- notificationStatus: NotificationPaletteColorOptions;
81
- statistics: StatisticsPalleteColorOptions;
82
- typography: TypographyPalleteColorOptions;
83
- priority: PriorityPalleteColorOptions;
84
- colors: ColorsPaletteColorOptions;
85
- }
86
- interface ColorsPaletteColorOptions {
87
- red: string;
88
- lightRed: string;
89
- orange: string;
90
- lightOrange: string;
91
- orangeHover: string;
92
- orangeFocused: string;
93
- gold: string;
94
- lightGold: string;
95
- yellow: string;
96
- lightYellow: string;
97
- yellowHover: string;
98
- yellowFocused: string;
99
- green1: string;
100
- lightGreen1: string;
101
- green2: string;
102
- lightGreen2: string;
103
- green2Hover: string;
104
- green2Focused: string;
105
- green3: string;
106
- blue: string;
107
- lightBlue: string;
108
- blueHover: string;
109
- blueFocused: string;
110
- blue1: string;
111
- lightBlue1: string;
112
- blue1Hover: string;
113
- blue1Focused: string;
114
- purple: string;
115
- lightPurple: string;
116
- }
117
- interface PriorityPalleteColorOptions {
118
- critical: string;
119
- high: string;
120
- low: string;
121
- medium: string;
122
- }
123
- interface UploaderPaletteColorOptions {
124
- processing: {
125
- border: string;
126
- bg: string;
127
- };
128
- pause: {
129
- border: string;
130
- bg: string;
131
- };
132
- }
133
- interface TrendsPaletteColorOptions {
134
- positive: string;
135
- negative: string;
136
- critical: string;
137
- percent: string;
138
- sum: string;
139
- }
140
- interface TypographyPalleteColorOptions {
141
- title: string;
142
- delete: string;
143
- }
144
- interface ScorePaletteColorOptions {
145
- excellent: string;
146
- high: string;
147
- medium: string;
148
- low: string;
149
- bad: string;
150
- }
151
- interface TypographyPalleteColorOptions {
152
- title: string;
153
- delete: string;
154
- }
155
- interface StatisticsPalleteColorOptions {
156
- value: string;
157
- label: string;
158
- }
159
- interface InvoiceAnalysisPaletteColorOptions {
160
- underCharges: string;
161
- overCharges: string;
162
- matching: string;
163
- invalid: string;
164
- }
165
- interface StatusPaletteColorOptions {
166
- active: StatusColorOption;
167
- approve: StatusColorOption;
168
- challenge: StatusColorOption;
169
- challenged: StatusColorOption;
170
- declined: StatusColorOption;
171
- discrepancy: StatusColorOption;
172
- duplicate: StatusColorOption;
173
- duplicated: StatusColorOption;
174
- gold: StatusColorOption;
175
- in_progress: StatusColorOption;
176
- in_review: StatusColorOption;
177
- no_pricing: StatusColorOption;
178
- pending: StatusColorOption;
179
- }
180
- interface InvoiceStatesPaletteColorOptions {
181
- approved: StatusColorOption;
182
- created: StatusColorOption;
183
- declined: StatusColorOption;
184
- in_dispute: StatusColorOption;
185
- in_progress: StatusColorOption;
186
- paid: StatusColorOption;
187
- closed: StatusColorOption;
188
- }
189
- interface RecosStatesPaletteColorOptions {
190
- created: StatusColorOption;
191
- in_progress: StatusColorOption;
192
- approved: StatusColorOption;
193
- declined: StatusColorOption;
194
- refunded: StatusColorOption;
195
- closed: StatusColorOption;
196
- }
197
- interface SnackbarPaletteColorOptions {
198
- info: SnackbarColorOption;
199
- warn: SnackbarColorOption;
200
- error: SnackbarColorOption;
201
- success: SnackbarColorOption;
202
- critical: SnackbarColorOption;
203
- silent: SnackbarColorOption;
204
- alert: SnackbarColorOption;
205
- }
206
- interface StatisticsPalleteColorOptions {
207
- value: string;
208
- label: string;
209
- }
210
- interface NotificationPaletteColorOptions {
211
- unread: string;
212
- }
213
- interface StatusColorOption {
214
- border: string;
215
- background: string;
216
- }
217
- interface SnackbarColorOption {
218
- border: string;
219
- icon: string;
220
- }
221
- interface TypographyVariants {
222
- table: React.CSSProperties;
223
- table2: React.CSSProperties;
224
- overLineCaption: React.CSSProperties;
225
- link: React.CSSProperties;
226
- }
227
- interface TypographyVariantsOptions {
228
- table: React.CSSProperties;
229
- table2: React.CSSProperties;
230
- overLineCaption: React.CSSProperties;
231
- link: React.CSSProperties;
232
- }
233
- }
234
- declare module '@mui/material/Typography' {
235
- interface TypographyPropsVariantOverrides {
236
- table: true;
237
- table2: true;
238
- overLineCaption: true;
239
- link: true;
240
- }
241
- }
242
- declare module '@mui/material/Button' {
243
- interface ButtonPropsVariantOverrides {
244
- primary: true;
245
- 'contained:rounded': true;
246
- }
247
- }
248
- export default function getPageContext(darkMode?: boolean): any;
@@ -1,2 +0,0 @@
1
- declare const redirect: (context: any, target: any) => void;
2
- export default redirect;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export declare const parseValue: ({ value, structure, onClick }: any) => any;
3
- export declare const getValueComponentByComponentValue: ({ value, name, title, type, onClick, }: {
4
- value?: any;
5
- name?: string | undefined;
6
- title?: string | undefined;
7
- type?: any;
8
- onClick?: any;
9
- }) => React.JSX.Element | null;
@@ -1,11 +0,0 @@
1
- export declare const resolvers: {
2
- Mutation: {
3
- changePage(_: any, args: any, { cache }: any): {
4
- currentPage: {
5
- name: any;
6
- path: string;
7
- __typename: string;
8
- };
9
- } | null;
10
- };
11
- };
@@ -1,2 +0,0 @@
1
- import 'regenerator-runtime/runtime.js';
2
- export declare const transform: ({ data, data_type, options }: any) => Promise<any>;
@@ -1,39 +0,0 @@
1
- export type EntityStatusType = {
2
- active: string;
3
- deleted: string;
4
- };
5
- export type ChargeStateType = {
6
- approved: string;
7
- archived: string;
8
- challenge: string;
9
- closed: string;
10
- discrepancy: string;
11
- duplicated: string;
12
- in_dispute: string;
13
- no_pricing: string;
14
- pending: string;
15
- refunded: string;
16
- };
17
- export type InvoiceStateType = {
18
- approved: string;
19
- created: string;
20
- declined: string;
21
- in_dispute: string;
22
- in_progress: string;
23
- paid: string;
24
- };
25
- export type RecoStateType = {
26
- approved: string;
27
- closed: string;
28
- created: string;
29
- declined: string;
30
- in_progress: string;
31
- refunded: string;
32
- };
33
- export type ScoreType = {
34
- excellent: string;
35
- high: string;
36
- medium: string;
37
- low: string;
38
- bad: string;
39
- };
@@ -1,5 +0,0 @@
1
- export declare const isArrayValid: (arr: Array<any>, minLength?: number, maxLength?: number) => boolean;
2
- export declare const isDateValid: (date: any) => boolean;
3
- export declare const isObjectValid: (obj: any, isCheckKeys?: boolean) => boolean;
4
- export declare const isStringValid: (str: string, minLength?: number | null, maxLength?: number | null, isValidateType?: boolean) => boolean;
5
- export declare const isObjectId: (value: string) => boolean;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes