@yuno-payments/dashboard-api-mfe 0.36.64 → 0.37.1
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.
- package/build/cjs/index.js +36 -201
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +40 -13
- package/build/cjs/types/mutations/accounts/accounts.mutation.d.ts +7 -7
- package/build/cjs/types/mutations/audit/audit-api.mutation.d.ts +5 -0
- package/build/cjs/types/mutations/audit/audit.mutation.d.ts +1 -1
- package/build/cjs/types/mutations/audit/index.d.ts +1 -0
- package/build/cjs/types/mutations/checkouts/checkouts.mutation.d.ts +1 -1
- package/build/cjs/types/mutations/index.d.ts +2 -0
- package/build/cjs/types/mutations/organization-settings/organization-settings.mutations.d.ts +2 -2
- package/build/cjs/types/mutations/payments/payments.mutation.d.ts +2 -2
- package/build/cjs/types/mutations/saml-config/saml-config.query.d.ts +3 -3
- package/build/cjs/types/mutations/settings/settings.mutation.d.ts +4 -4
- package/build/cjs/types/mutations/template-reporting/index.d.ts +1 -0
- package/build/cjs/types/mutations/template-reporting/template-reporting.mutation.d.ts +20 -0
- package/build/cjs/types/mutations/users/users.mutation.d.ts +6 -6
- package/build/cjs/types/queries/accounts/accounts.query.d.ts +6 -0
- package/build/cjs/types/queries/audit/audit.query.d.ts +6 -0
- package/build/cjs/types/queries/firebase/firebase.query.d.ts +1 -1
- package/build/cjs/types/queries/index.d.ts +1 -0
- package/build/cjs/types/queries/template-reporting/index.d.ts +1 -0
- package/build/cjs/types/queries/template-reporting/template-reporting.query.d.ts +7 -0
- package/build/cjs/types/queries/users/users.query.d.ts +2 -3
- package/build/cjs/types/types/audit/audit.d.ts +81 -0
- package/build/cjs/types/types/checkout/styling/styling.d.ts +6 -0
- package/build/cjs/types/types/index.d.ts +1 -0
- package/build/cjs/types/types/template-reporting/common.types.d.ts +60 -0
- package/build/cjs/types/types/template-reporting/index.d.ts +47 -0
- package/build/cjs/types/types/template-reporting/schedule.types.d.ts +58 -0
- package/build/cjs/types/types/template-reporting/template.types.d.ts +86 -0
- package/build/cjs/types/types/user/user.d.ts +16 -5
- package/build/esm/index.js +36 -201
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +40 -13
- package/build/esm/types/mutations/accounts/accounts.mutation.d.ts +7 -7
- package/build/esm/types/mutations/audit/audit-api.mutation.d.ts +5 -0
- package/build/esm/types/mutations/audit/audit.mutation.d.ts +1 -1
- package/build/esm/types/mutations/audit/index.d.ts +1 -0
- package/build/esm/types/mutations/checkouts/checkouts.mutation.d.ts +1 -1
- package/build/esm/types/mutations/index.d.ts +2 -0
- package/build/esm/types/mutations/organization-settings/organization-settings.mutations.d.ts +2 -2
- package/build/esm/types/mutations/payments/payments.mutation.d.ts +2 -2
- package/build/esm/types/mutations/saml-config/saml-config.query.d.ts +3 -3
- package/build/esm/types/mutations/settings/settings.mutation.d.ts +4 -4
- package/build/esm/types/mutations/template-reporting/index.d.ts +1 -0
- package/build/esm/types/mutations/template-reporting/template-reporting.mutation.d.ts +20 -0
- package/build/esm/types/mutations/users/users.mutation.d.ts +6 -6
- package/build/esm/types/queries/accounts/accounts.query.d.ts +6 -0
- package/build/esm/types/queries/audit/audit.query.d.ts +6 -0
- package/build/esm/types/queries/firebase/firebase.query.d.ts +1 -1
- package/build/esm/types/queries/index.d.ts +1 -0
- package/build/esm/types/queries/template-reporting/index.d.ts +1 -0
- package/build/esm/types/queries/template-reporting/template-reporting.query.d.ts +7 -0
- package/build/esm/types/queries/users/users.query.d.ts +2 -3
- package/build/esm/types/types/audit/audit.d.ts +81 -0
- package/build/esm/types/types/checkout/styling/styling.d.ts +6 -0
- package/build/esm/types/types/index.d.ts +1 -0
- package/build/esm/types/types/template-reporting/common.types.d.ts +60 -0
- package/build/esm/types/types/template-reporting/index.d.ts +47 -0
- package/build/esm/types/types/template-reporting/schedule.types.d.ts +58 -0
- package/build/esm/types/types/template-reporting/template.types.d.ts +86 -0
- package/build/esm/types/types/user/user.d.ts +16 -5
- package/build/index.d.ts +455 -48
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { FrequencyType, FormatType, ScheduleExecutionStatusType } from './common.types';
|
|
2
|
+
import { ReportTemplate } from './template.types';
|
|
3
|
+
export interface ReportSchedule {
|
|
4
|
+
id: number;
|
|
5
|
+
report_template_id?: number;
|
|
6
|
+
organization_code?: string;
|
|
7
|
+
accounts: string[];
|
|
8
|
+
name: string;
|
|
9
|
+
cron_expression?: string;
|
|
10
|
+
frequency: FrequencyType;
|
|
11
|
+
time_of_day: string;
|
|
12
|
+
day_of_week?: number;
|
|
13
|
+
day_of_month?: number;
|
|
14
|
+
format: FormatType;
|
|
15
|
+
start_date: string;
|
|
16
|
+
end_date?: string;
|
|
17
|
+
destination_emails: string[];
|
|
18
|
+
created_at?: string;
|
|
19
|
+
updated_at?: string;
|
|
20
|
+
deleted_at?: string;
|
|
21
|
+
report_template?: ReportTemplate;
|
|
22
|
+
executions?: ReportScheduleExecution[];
|
|
23
|
+
}
|
|
24
|
+
export interface ReportScheduleExecution {
|
|
25
|
+
id: number;
|
|
26
|
+
report_schedule_id: number;
|
|
27
|
+
started_at: string;
|
|
28
|
+
finished_at?: string;
|
|
29
|
+
status: ScheduleExecutionStatusType;
|
|
30
|
+
error_message?: string;
|
|
31
|
+
report_id?: string;
|
|
32
|
+
created_at: string;
|
|
33
|
+
updated_at: string;
|
|
34
|
+
report_schedule?: ReportSchedule;
|
|
35
|
+
}
|
|
36
|
+
export interface GetSchedulesListResponse {
|
|
37
|
+
schedules: ReportSchedule[];
|
|
38
|
+
total: number;
|
|
39
|
+
}
|
|
40
|
+
export interface CreateScheduleRequest {
|
|
41
|
+
report_template_id: number;
|
|
42
|
+
name: string;
|
|
43
|
+
frequency: FrequencyType;
|
|
44
|
+
time_of_day: string;
|
|
45
|
+
day_of_week?: number;
|
|
46
|
+
day_of_month?: number;
|
|
47
|
+
format: FormatType;
|
|
48
|
+
start_date?: string;
|
|
49
|
+
end_date?: string;
|
|
50
|
+
destination_emails: string[];
|
|
51
|
+
accounts: string[];
|
|
52
|
+
}
|
|
53
|
+
export type ScheduleWithTemplate = ReportSchedule & {
|
|
54
|
+
report_template: ReportTemplate;
|
|
55
|
+
};
|
|
56
|
+
export type ScheduleWithExecutions = ReportSchedule & {
|
|
57
|
+
executions: ReportScheduleExecution[];
|
|
58
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { TemplateVariantType, TemplateStatusType, ColumnModeType, FilterDefinition, FilterSelection } from './common.types';
|
|
2
|
+
export interface TemplateMetadata {
|
|
3
|
+
version: number;
|
|
4
|
+
filters: Record<string, FilterDefinition>;
|
|
5
|
+
timezone: {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface TemplateSelection {
|
|
10
|
+
version: number;
|
|
11
|
+
filters: Record<string, FilterSelection>;
|
|
12
|
+
timezone?: string;
|
|
13
|
+
columns: {
|
|
14
|
+
mode: ColumnModeType;
|
|
15
|
+
keys?: string[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface ReportTemplateMetadata {
|
|
19
|
+
id: number;
|
|
20
|
+
metadata: TemplateMetadata;
|
|
21
|
+
created_at: string;
|
|
22
|
+
updated_at: string;
|
|
23
|
+
deleted_at?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ReportTemplate {
|
|
26
|
+
id: number;
|
|
27
|
+
module: string;
|
|
28
|
+
type: string;
|
|
29
|
+
variant: TemplateVariantType;
|
|
30
|
+
name: string;
|
|
31
|
+
is_system: boolean;
|
|
32
|
+
status: TemplateStatusType;
|
|
33
|
+
base_template_id?: number;
|
|
34
|
+
selection: TemplateSelection;
|
|
35
|
+
organization_code?: string;
|
|
36
|
+
accounts?: string[];
|
|
37
|
+
metadata_id?: number;
|
|
38
|
+
created_at?: string;
|
|
39
|
+
updated_at?: string;
|
|
40
|
+
deleted_at?: string;
|
|
41
|
+
metadata?: TemplateMetadata;
|
|
42
|
+
base_template?: ReportTemplate;
|
|
43
|
+
available_columns?: {
|
|
44
|
+
default: AvailableColumn[];
|
|
45
|
+
all: AvailableColumn[];
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export interface AvailableColumn {
|
|
49
|
+
name: string;
|
|
50
|
+
table: string;
|
|
51
|
+
report_name: string;
|
|
52
|
+
type: string;
|
|
53
|
+
dashboard_name: string;
|
|
54
|
+
snowflake_name?: string;
|
|
55
|
+
snowflake_table?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface GetTemplatesListParams {
|
|
58
|
+
module: string;
|
|
59
|
+
}
|
|
60
|
+
export interface GetTemplatesListResponse {
|
|
61
|
+
templates: ReportTemplate[];
|
|
62
|
+
}
|
|
63
|
+
export interface CreateTemplateRequest {
|
|
64
|
+
module: string;
|
|
65
|
+
type: string;
|
|
66
|
+
variant: TemplateVariantType;
|
|
67
|
+
name: string;
|
|
68
|
+
base_template_id?: number;
|
|
69
|
+
selection: TemplateSelection;
|
|
70
|
+
accounts: string[];
|
|
71
|
+
metadata: TemplateMetadata;
|
|
72
|
+
}
|
|
73
|
+
export interface CloneTemplateRequest {
|
|
74
|
+
name: string;
|
|
75
|
+
accounts?: string[];
|
|
76
|
+
selection?: TemplateSelection;
|
|
77
|
+
}
|
|
78
|
+
export interface UpdateTemplateSelectionRequest {
|
|
79
|
+
selection: TemplateSelection;
|
|
80
|
+
}
|
|
81
|
+
export interface ChangeTemplateStatusRequest {
|
|
82
|
+
status: TemplateStatusType;
|
|
83
|
+
}
|
|
84
|
+
export type TemplateWithMetadata = ReportTemplate & {
|
|
85
|
+
metadata: ReportTemplateMetadata;
|
|
86
|
+
};
|
|
@@ -153,13 +153,24 @@ export declare namespace User {
|
|
|
153
153
|
first_name: string;
|
|
154
154
|
last_name: string;
|
|
155
155
|
email: string;
|
|
156
|
+
account_code: string;
|
|
157
|
+
account_code_live: string;
|
|
158
|
+
account_code_testing: string;
|
|
159
|
+
account_name: string;
|
|
160
|
+
role: {
|
|
161
|
+
id: string;
|
|
162
|
+
name: string;
|
|
163
|
+
};
|
|
156
164
|
}
|
|
157
165
|
interface UsersToImpersonateResponse {
|
|
166
|
+
code: string;
|
|
167
|
+
organization_code: string;
|
|
168
|
+
organization_name: string;
|
|
169
|
+
organization_logo: string | null;
|
|
170
|
+
total_elements: number;
|
|
171
|
+
total_pages: number;
|
|
172
|
+
page: number;
|
|
173
|
+
page_size: number;
|
|
158
174
|
users: UsersToImpersonateUser[];
|
|
159
175
|
}
|
|
160
176
|
}
|
|
161
|
-
export interface GetUserFullResponse {
|
|
162
|
-
user: User.UserResponsePayload;
|
|
163
|
-
organization: Organization.Organization;
|
|
164
|
-
accounts_user: Organization.Account[];
|
|
165
|
-
}
|