@nomalism-com/types 0.45.72 → 0.45.73
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,42 @@
|
|
|
1
|
+
import { SmsSender } from '../../../shared/entities/stock';
|
|
2
|
+
export type Entity = SmsSender;
|
|
3
|
+
export declare const Route = "sms_sender";
|
|
4
|
+
export declare const ISmsSenderStatsEnum: {
|
|
5
|
+
readonly PENDING: "PENDING";
|
|
6
|
+
readonly PROCESSING: "PROCESSING";
|
|
7
|
+
readonly SENT: "SENT";
|
|
8
|
+
readonly FAILED: "FAILED";
|
|
9
|
+
};
|
|
10
|
+
export type ISmsSenderStats = (typeof ISmsSenderStatsEnum)[keyof typeof ISmsSenderStatsEnum];
|
|
11
|
+
export declare const timeSheetRecordTypes: ("PENDING" | "PROCESSING" | "SENT" | "FAILED")[];
|
|
12
|
+
export interface ICreateRequest {
|
|
13
|
+
phone: string;
|
|
14
|
+
message: string;
|
|
15
|
+
google_calendar_id: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IClaimResponse {
|
|
18
|
+
id: string;
|
|
19
|
+
phone: string;
|
|
20
|
+
message: string;
|
|
21
|
+
status: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IResultRequest {
|
|
24
|
+
status: ISmsSenderStats;
|
|
25
|
+
error?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IFindResponse {
|
|
28
|
+
id: string;
|
|
29
|
+
phone: string;
|
|
30
|
+
message: string;
|
|
31
|
+
status: string;
|
|
32
|
+
error?: string;
|
|
33
|
+
created_at: Date;
|
|
34
|
+
processed_at?: Date;
|
|
35
|
+
sent_at?: Date;
|
|
36
|
+
}
|
|
37
|
+
export interface IController {
|
|
38
|
+
claim(): Promise<IClaimResponse>;
|
|
39
|
+
result(id: string, data: IResultRequest): Promise<void>;
|
|
40
|
+
findById(id: string): Promise<IFindResponse>;
|
|
41
|
+
findAll(): Promise<IFindResponse[]>;
|
|
42
|
+
}
|
|
@@ -14,6 +14,7 @@ import type { IRsaHashData, ITaxEntry } from '../../modules/supply/documentHeade
|
|
|
14
14
|
import type { ProjectInfo } from './integration';
|
|
15
15
|
import { IEstadoEncomenda } from '../../modules/stock/conferirEncomenda/interface';
|
|
16
16
|
import { IMotivosDeEsperaData } from '../../modules/document/order/interfaces';
|
|
17
|
+
import { ISmsSenderStats } from '../../modules/stock/smsSender/interfaces';
|
|
17
18
|
/**
|
|
18
19
|
* Model AccountCode
|
|
19
20
|
*
|
|
@@ -1136,3 +1137,18 @@ export type SidemenuHightlight = {
|
|
|
1136
1137
|
created_by: string;
|
|
1137
1138
|
updated_by: string;
|
|
1138
1139
|
};
|
|
1140
|
+
/**
|
|
1141
|
+
* Model SmsSender
|
|
1142
|
+
*
|
|
1143
|
+
*/
|
|
1144
|
+
export type SmsSender = {
|
|
1145
|
+
id: string;
|
|
1146
|
+
google_calendar_id: string;
|
|
1147
|
+
phone: string;
|
|
1148
|
+
message: string;
|
|
1149
|
+
status: ISmsSenderStats;
|
|
1150
|
+
error: string | null;
|
|
1151
|
+
created_at: Date;
|
|
1152
|
+
processed_at: Date | null;
|
|
1153
|
+
sent_at: Date | null;
|
|
1154
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.45.
|
|
4
|
+
"version": "0.45.73",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|