@tagsamurai/gsts-api-services 2.0.1-alpha.30 → 2.0.1-alpha.32

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.
@@ -113,7 +113,7 @@ const U = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
113
113
  e[r] = x(n) ? JSON.parse(n.trim()) : n;
114
114
  }), e;
115
115
  }, b = p({
116
- prefix: "v2/analytics-reporting"
116
+ prefix: "/v2/analytics-reporting"
117
117
  }), j = {
118
118
  getChangelogs: (t) => {
119
119
  const e = a(t);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/gsts-api-services",
3
- "version": "2.0.1-alpha.30",
3
+ "version": "2.0.1-alpha.32",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Global Settings Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -1,5 +1,5 @@
1
1
  import { TableParams } from '../types/dataTable.type';
2
- import { GlobalUserOptions, ModuleAccess } from '../types/iam.type';
2
+ import { DataType, GlobalUserOptions, ModuleAccess } from '../types/iam.type';
3
3
  export interface LoginPayload {
4
4
  email: string;
5
5
  password: string | null;
@@ -72,7 +72,7 @@ export interface LogoutSessionPayload {
72
72
  }
73
73
  export interface GetCustomFieldListParams extends TableParams {
74
74
  isActive?: boolean[];
75
- dataType?: string[];
75
+ dataType?: DataType[];
76
76
  isRequired?: boolean[];
77
77
  }
78
78
  export type GetCustomFieldOptionsParams = Partial<{
@@ -20,9 +20,9 @@ export interface LoginResponse {
20
20
  };
21
21
  };
22
22
  }
23
- type BaseMessage = string & {};
23
+ type BaseString = string & {};
24
24
  export interface VerifyTokenResponse {
25
- message: 'Token Verified!' | 'Token not found' | 'Internal server error' | BaseMessage;
25
+ message: 'Token Verified!' | 'Token not found' | 'Internal server error' | BaseString;
26
26
  data: boolean;
27
27
  }
28
28
  interface BaseResponse<TMessage> {
@@ -30,8 +30,8 @@ interface BaseResponse<TMessage> {
30
30
  message: TMessage;
31
31
  data?: boolean;
32
32
  }
33
- export type RequestResetLinkMessage = 'EMAIL_NOT_REGISTERED' | BaseMessage;
34
- export type RequestOtpMessage = 'Successfully requested otp' | 'EMAIL_NOT_REGISTERED' | 'INACTIVE_USER' | BaseMessage;
33
+ export type RequestResetLinkMessage = 'EMAIL_NOT_REGISTERED' | BaseString;
34
+ export type RequestOtpMessage = 'Successfully requested otp' | 'EMAIL_NOT_REGISTERED' | 'INACTIVE_USER' | BaseString;
35
35
  export interface RequestResetLinkResponse extends BaseResponse<RequestResetLinkMessage> {
36
36
  }
37
37
  export interface RequestOtpResponse extends BaseResponse<RequestOtpMessage> {
@@ -56,7 +56,7 @@ export interface DivisionListDetail extends BaseDivision {
56
56
  }
57
57
  export interface ChangePasswordResponse {
58
58
  status?: number;
59
- message?: 'INCORRECT_PASSWORD' | BaseMessage;
59
+ message?: 'INCORRECT_PASSWORD' | BaseString;
60
60
  }
61
61
  export interface GlobalUserList {
62
62
  _id: string;
@@ -103,7 +103,7 @@ export interface GlobalUserDetail {
103
103
  division: string;
104
104
  employeeId: string | null;
105
105
  expiryDate: string | null;
106
- access: (ModuleAccess | BaseMessage)[];
106
+ access: (ModuleAccess | BaseString)[];
107
107
  }
108
108
  export interface LoginModuleResponse extends LoginResponse {
109
109
  isTotalControl: boolean;
@@ -149,13 +149,14 @@ export interface Position extends DropdownOption {
149
149
  }
150
150
  export interface Division extends DropdownOption {
151
151
  }
152
+ export type DataType = 'Text' | 'Numeric' | 'Date' | 'Dropdown' | 'Text Area' | BaseString;
152
153
  export interface CustomField {
153
154
  _id: string;
154
155
  name: string;
155
- dataType: string;
156
+ dataType: DataType;
156
157
  optionValue: string[];
157
158
  isActive: boolean;
158
- isRequired: 'Yes' | 'No' | BaseMessage;
159
+ isRequired: 'Yes' | 'No' | BaseString;
159
160
  createdAt: string;
160
161
  updatedAt: string;
161
162
  }