@devline-smart-taxi/common 2.3.46 → 2.3.48

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/dist/index.d.ts CHANGED
@@ -40,3 +40,5 @@ export * from './dto/create-car-model.dto';
40
40
  export * from './dto/update-car-model.dto';
41
41
  export * from './proto/wallet-proto-path';
42
42
  export * from './proto/bonus-campaign-proto-path';
43
+ export * from './proto/support-contact-proto-path';
44
+ export * from './proto/legal-document-proto-path';
package/dist/index.js CHANGED
@@ -57,3 +57,5 @@ __exportStar(require("./dto/create-car-model.dto"), exports);
57
57
  __exportStar(require("./dto/update-car-model.dto"), exports);
58
58
  __exportStar(require("./proto/wallet-proto-path"), exports);
59
59
  __exportStar(require("./proto/bonus-campaign-proto-path"), exports);
60
+ __exportStar(require("./proto/support-contact-proto-path"), exports);
61
+ __exportStar(require("./proto/legal-document-proto-path"), exports);
@@ -0,0 +1 @@
1
+ export declare const legalDocumentProtoPath: string;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.legalDocumentProtoPath = void 0;
4
+ exports.legalDocumentProtoPath = `${__dirname}/legal-document.proto`;
@@ -0,0 +1,3 @@
1
+ declare const __dirname: string;
2
+
3
+ export const legalDocumentProtoPath = `${__dirname}/legal-document.proto`;
@@ -0,0 +1,59 @@
1
+ syntax = "proto3";
2
+
3
+ package legal_document;
4
+
5
+ import "common.proto";
6
+
7
+ // ==========================================
8
+ // 1. SERVICES
9
+ // ==========================================
10
+ service LegalDocumentService {
11
+ rpc Create (CreateLegalDocumentRequest) returns (LegalDocumentResponse);
12
+ rpc Update (UpdateLegalDocumentRequest) returns (LegalDocumentResponse);
13
+ rpc Delete (common.IdRequest) returns (common.SuccessResponseResult);
14
+ // Public — faqat active
15
+ rpc GetAll (common.NoParams) returns (LegalDocumentListResponse);
16
+ // Admin — hammasi
17
+ rpc GetAllAdmin (common.NoParams) returns (LegalDocumentListResponse);
18
+ rpc GetById (common.IdRequest) returns (LegalDocumentResponse);
19
+ }
20
+
21
+ // ==========================================
22
+ // 2. REQUESTS
23
+ // ==========================================
24
+ message CreateLegalDocumentRequest {
25
+ string type = 1;
26
+ string title = 2;
27
+ string fileUrl = 3;
28
+ }
29
+
30
+ message UpdateLegalDocumentRequest {
31
+ string id = 1;
32
+ optional string title = 2;
33
+ optional string fileUrl = 3;
34
+ }
35
+
36
+ // ==========================================
37
+ // 3. RESPONSES
38
+ // ==========================================
39
+ message LegalDocumentData {
40
+ string id = 1;
41
+ string type = 2;
42
+ string title = 3;
43
+ string fileUrl = 4;
44
+ int32 version = 5;
45
+ bool isActive = 6;
46
+ string createdAt = 7;
47
+ }
48
+
49
+ message LegalDocumentResponse {
50
+ int32 statusCode = 1;
51
+ string message = 2;
52
+ LegalDocumentData data = 3;
53
+ }
54
+
55
+ message LegalDocumentListResponse {
56
+ int32 statusCode = 1;
57
+ string message = 2;
58
+ repeated LegalDocumentData data = 3;
59
+ }
@@ -0,0 +1 @@
1
+ export declare const supportContactProtoPath: string;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supportContactProtoPath = void 0;
4
+ exports.supportContactProtoPath = `${__dirname}/support-contact.proto`;
@@ -0,0 +1,3 @@
1
+ declare const __dirname: string;
2
+
3
+ export const supportContactProtoPath = `${__dirname}/support-contact.proto`;
@@ -0,0 +1,59 @@
1
+ syntax = "proto3";
2
+
3
+ package support_contact;
4
+
5
+ import "common.proto";
6
+
7
+ // ==========================================
8
+ // 1. SERVICES
9
+ // ==========================================
10
+ service SupportContactService {
11
+ rpc Create (CreateSupportContactRequest) returns (SupportContactResponse);
12
+ rpc Update (UpdateSupportContactRequest) returns (SupportContactResponse);
13
+ rpc Delete (common.IdRequest) returns (common.SuccessResponseResult);
14
+ // Public — faqat active
15
+ rpc GetAll (common.NoParams) returns (SupportContactListResponse);
16
+ // Admin — hammasi
17
+ rpc GetAllAdmin (common.NoParams) returns (SupportContactListResponse);
18
+ rpc GetById (common.IdRequest) returns (SupportContactResponse);
19
+ }
20
+
21
+ // ==========================================
22
+ // 2. REQUESTS
23
+ // ==========================================
24
+ message CreateSupportContactRequest {
25
+ string type = 1;
26
+ string value = 2;
27
+ optional string label = 3;
28
+ }
29
+
30
+ message UpdateSupportContactRequest {
31
+ string id = 1;
32
+ optional string type = 2;
33
+ optional string value = 3;
34
+ optional string label = 4;
35
+ }
36
+
37
+ // ==========================================
38
+ // 3. RESPONSES
39
+ // ==========================================
40
+ message SupportContactData {
41
+ string id = 1;
42
+ string type = 2;
43
+ string value = 3;
44
+ string label = 4;
45
+ bool isActive = 5;
46
+ string createdAt = 6;
47
+ }
48
+
49
+ message SupportContactResponse {
50
+ int32 statusCode = 1;
51
+ string message = 2;
52
+ SupportContactData data = 3;
53
+ }
54
+
55
+ message SupportContactListResponse {
56
+ int32 statusCode = 1;
57
+ string message = 2;
58
+ repeated SupportContactData data = 3;
59
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devline-smart-taxi/common",
3
- "version": "2.3.46",
3
+ "version": "2.3.48",
4
4
  "description": "Reusable NestJS common library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",