@grapadigital/shared-schemas 1.0.240 → 1.0.242
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 +2 -0
- package/dist/index.js +2 -0
- package/dist/schemas/action.schema.d.ts +4 -4
- package/dist/schemas/assignment.schema.d.ts +3 -3
- package/dist/schemas/benchmark.schema.d.ts +2 -2
- package/dist/schemas/campaign.schema.d.ts +2 -2
- package/dist/schemas/client.schema.d.ts +62 -26
- package/dist/schemas/client.schema.js +2 -2
- package/dist/schemas/comment.schema.d.ts +4 -4
- package/dist/schemas/commission.schema.d.ts +2 -2
- package/dist/schemas/content-capture-process.schema.d.ts +6 -6
- package/dist/schemas/content-draft.schema.d.ts +2 -2
- package/dist/schemas/content.schema.d.ts +14 -14
- package/dist/schemas/contract.schema.d.ts +2 -2
- package/dist/schemas/creative.schema.d.ts +5 -5
- package/dist/schemas/export-comments-job.schema.d.ts +2 -2
- package/dist/schemas/group.schema.d.ts +1 -1
- package/dist/schemas/influencer.schema.d.ts +6 -6
- package/dist/schemas/invoice.schema.d.ts +2 -2
- package/dist/schemas/job.schema.d.ts +2 -2
- package/dist/schemas/lead.schema.d.ts +14 -14
- package/dist/schemas/log.schema.d.ts +2 -2
- package/dist/schemas/note.schema.d.ts +2 -2
- package/dist/schemas/notifications.schema.d.ts +2 -2
- package/dist/schemas/organization.schema.d.ts +1 -1
- package/dist/schemas/party.schema.d.ts +5 -5
- package/dist/schemas/payment.schema.d.ts +10 -10
- package/dist/schemas/profile.schema.d.ts +2 -2
- package/dist/schemas/project.schema.d.ts +5 -5
- package/dist/schemas/prospect.schema.d.ts +3 -3
- package/dist/schemas/recruitment.schema.d.ts +14 -14
- package/dist/schemas/responsible.schema.d.ts +1 -1
- package/dist/schemas/sale.schema.d.ts +3 -3
- package/dist/schemas/script.schema.d.ts +5 -5
- package/dist/schemas/snapshot.schema.d.ts +2 -2
- package/dist/schemas/store-visit.schema.d.ts +51 -0
- package/dist/schemas/store-visit.schema.js +85 -0
- package/dist/schemas/store.schema.d.ts +61 -0
- package/dist/schemas/store.schema.js +61 -0
- package/dist/schemas/supplier.schema.d.ts +2 -2
- package/dist/schemas/tag.schema.d.ts +1 -1
- package/dist/schemas/task.schema.d.ts +6 -4
- package/dist/schemas/task.schema.js +23 -1
- package/dist/schemas/token.schema.d.ts +2 -2
- package/dist/schemas/trigger.schema.d.ts +1 -1
- package/dist/schemas/user.schema.d.ts +1 -1
- package/dist/schemas/webhook.schema.d.ts +5 -5
- package/package.json +8 -5
- package/src/index.ts +2 -0
- package/src/schemas/client.schema.ts +2 -2
- package/src/schemas/store-visit.schema.ts +68 -0
- package/src/schemas/store.schema.ts +52 -0
- package/src/schemas/task.schema.ts +35 -2
|
@@ -43,7 +43,7 @@ export declare const DeliverySchema: MongooseSchema<Delivery, import("mongoose")
|
|
|
43
43
|
_id: Types.ObjectId;
|
|
44
44
|
} & {
|
|
45
45
|
__v: number;
|
|
46
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Delivery, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Delivery>, {}, import("mongoose").
|
|
46
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Delivery, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Delivery>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Delivery> & {
|
|
47
47
|
_id: Types.ObjectId;
|
|
48
48
|
} & {
|
|
49
49
|
__v: number;
|
|
@@ -56,7 +56,7 @@ export declare const RightSchema: MongooseSchema<Right, import("mongoose").Model
|
|
|
56
56
|
_id: Types.ObjectId;
|
|
57
57
|
} & {
|
|
58
58
|
__v: number;
|
|
59
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Right, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Right>, {}, import("mongoose").
|
|
59
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Right, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Right>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Right> & {
|
|
60
60
|
_id: Types.ObjectId;
|
|
61
61
|
} & {
|
|
62
62
|
__v: number;
|
|
@@ -70,7 +70,7 @@ export declare const RightsSchema: MongooseSchema<Rights, import("mongoose").Mod
|
|
|
70
70
|
_id: Types.ObjectId;
|
|
71
71
|
} & {
|
|
72
72
|
__v: number;
|
|
73
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Rights, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Rights>, {}, import("mongoose").
|
|
73
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Rights, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Rights>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Rights> & {
|
|
74
74
|
_id: Types.ObjectId;
|
|
75
75
|
} & {
|
|
76
76
|
__v: number;
|
|
@@ -83,7 +83,7 @@ export declare const InstallmentInfoSchema: MongooseSchema<InstallmentInfo, impo
|
|
|
83
83
|
_id: Types.ObjectId;
|
|
84
84
|
} & {
|
|
85
85
|
__v: number;
|
|
86
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, InstallmentInfo, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<InstallmentInfo>, {}, import("mongoose").
|
|
86
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, InstallmentInfo, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<InstallmentInfo>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<InstallmentInfo> & {
|
|
87
87
|
_id: Types.ObjectId;
|
|
88
88
|
} & {
|
|
89
89
|
__v: number;
|
|
@@ -103,7 +103,7 @@ export declare const ExchangeSchema: MongooseSchema<Exchange, import("mongoose")
|
|
|
103
103
|
_id: Types.ObjectId;
|
|
104
104
|
} & {
|
|
105
105
|
__v: number;
|
|
106
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Exchange, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Exchange>, {}, import("mongoose").
|
|
106
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Exchange, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Exchange>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Exchange> & {
|
|
107
107
|
_id: Types.ObjectId;
|
|
108
108
|
} & {
|
|
109
109
|
__v: number;
|
|
@@ -116,7 +116,7 @@ export declare const CollabSchema: MongooseSchema<Collab, import("mongoose").Mod
|
|
|
116
116
|
_id: Types.ObjectId;
|
|
117
117
|
} & {
|
|
118
118
|
__v: number;
|
|
119
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Collab, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Collab>, {}, import("mongoose").
|
|
119
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Collab, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Collab>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Collab> & {
|
|
120
120
|
_id: Types.ObjectId;
|
|
121
121
|
} & {
|
|
122
122
|
__v: number;
|
|
@@ -128,7 +128,7 @@ export declare const OptInSchema: MongooseSchema<OptIn, import("mongoose").Model
|
|
|
128
128
|
_id: Types.ObjectId;
|
|
129
129
|
} & {
|
|
130
130
|
__v: number;
|
|
131
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, OptIn, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<OptIn>, {}, import("mongoose").
|
|
131
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, OptIn, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<OptIn>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<OptIn> & {
|
|
132
132
|
_id: Types.ObjectId;
|
|
133
133
|
} & {
|
|
134
134
|
__v: number;
|
|
@@ -143,7 +143,7 @@ export declare const ScopeEstimateMetricsSchema: MongooseSchema<ScopeEstimateMet
|
|
|
143
143
|
_id: Types.ObjectId;
|
|
144
144
|
} & {
|
|
145
145
|
__v: number;
|
|
146
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimateMetrics, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimateMetrics>, {}, import("mongoose").
|
|
146
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimateMetrics, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimateMetrics>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ScopeEstimateMetrics> & {
|
|
147
147
|
_id: Types.ObjectId;
|
|
148
148
|
} & {
|
|
149
149
|
__v: number;
|
|
@@ -159,7 +159,7 @@ export declare const ScopeEstimateBreakdownSchema: MongooseSchema<ScopeEstimateB
|
|
|
159
159
|
_id: Types.ObjectId;
|
|
160
160
|
} & {
|
|
161
161
|
__v: number;
|
|
162
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimateBreakdown, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimateBreakdown>, {}, import("mongoose").
|
|
162
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimateBreakdown, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimateBreakdown>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ScopeEstimateBreakdown> & {
|
|
163
163
|
_id: Types.ObjectId;
|
|
164
164
|
} & {
|
|
165
165
|
__v: number;
|
|
@@ -176,7 +176,7 @@ export declare const ScopeEstimatesSchema: MongooseSchema<ScopeEstimates, import
|
|
|
176
176
|
_id: Types.ObjectId;
|
|
177
177
|
} & {
|
|
178
178
|
__v: number;
|
|
179
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimates, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimates>, {}, import("mongoose").
|
|
179
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimates, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimates>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ScopeEstimates> & {
|
|
180
180
|
_id: Types.ObjectId;
|
|
181
181
|
} & {
|
|
182
182
|
__v: number;
|
|
@@ -202,7 +202,7 @@ export declare const ScopeSchema: MongooseSchema<Scope, import("mongoose").Model
|
|
|
202
202
|
_id: Types.ObjectId;
|
|
203
203
|
} & {
|
|
204
204
|
__v: number;
|
|
205
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Scope, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Scope>, {}, import("mongoose").
|
|
205
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Scope, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Scope>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Scope> & {
|
|
206
206
|
_id: Types.ObjectId;
|
|
207
207
|
} & {
|
|
208
208
|
__v: number;
|
|
@@ -215,7 +215,7 @@ export declare const RecruitmentProfileSchema: MongooseSchema<RecruitmentProfile
|
|
|
215
215
|
_id: Types.ObjectId;
|
|
216
216
|
} & {
|
|
217
217
|
__v: number;
|
|
218
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, RecruitmentProfile, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<RecruitmentProfile>, {}, import("mongoose").
|
|
218
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, RecruitmentProfile, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<RecruitmentProfile>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<RecruitmentProfile> & {
|
|
219
219
|
_id: Types.ObjectId;
|
|
220
220
|
} & {
|
|
221
221
|
__v: number;
|
|
@@ -237,7 +237,7 @@ export declare const RecruitmentSchema: MongooseSchema<Recruitment, import("mong
|
|
|
237
237
|
_id: Types.ObjectId;
|
|
238
238
|
}> & {
|
|
239
239
|
__v: number;
|
|
240
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Recruitment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Recruitment>, {}, import("mongoose").
|
|
240
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Recruitment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Recruitment>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Recruitment> & Required<{
|
|
241
241
|
_id: Types.ObjectId;
|
|
242
242
|
}> & {
|
|
243
243
|
__v: number;
|
|
@@ -250,7 +250,7 @@ export declare const RecruitmentModel: import("mongoose").Model<Recruitment, {},
|
|
|
250
250
|
_id: Types.ObjectId;
|
|
251
251
|
}> & {
|
|
252
252
|
__v: number;
|
|
253
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Recruitment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Recruitment>, {}, import("mongoose").
|
|
253
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Recruitment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Recruitment>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Recruitment> & Required<{
|
|
254
254
|
_id: Types.ObjectId;
|
|
255
255
|
}> & {
|
|
256
256
|
__v: number;
|
|
@@ -38,7 +38,7 @@ export declare const ResponsibleSchema: import("mongoose").Schema<Responsible, i
|
|
|
38
38
|
_id: import("mongoose").Types.ObjectId;
|
|
39
39
|
} & {
|
|
40
40
|
__v: number;
|
|
41
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Responsible, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Responsible>, {}, import("mongoose").
|
|
41
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Responsible, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Responsible>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Responsible> & {
|
|
42
42
|
_id: import("mongoose").Types.ObjectId;
|
|
43
43
|
} & {
|
|
44
44
|
__v: number;
|
|
@@ -125,7 +125,7 @@ export declare const SaleResponsibleSchema: MongooseSchema<SaleResponsible, impo
|
|
|
125
125
|
_id: Types.ObjectId;
|
|
126
126
|
} & {
|
|
127
127
|
__v: number;
|
|
128
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, SaleResponsible, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<SaleResponsible>, {}, import("mongoose").
|
|
128
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, SaleResponsible, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<SaleResponsible>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<SaleResponsible> & {
|
|
129
129
|
_id: Types.ObjectId;
|
|
130
130
|
} & {
|
|
131
131
|
__v: number;
|
|
@@ -163,7 +163,7 @@ export declare const SaleSchema: MongooseSchema<Sale, import("mongoose").Model<S
|
|
|
163
163
|
_id: Types.ObjectId;
|
|
164
164
|
}> & {
|
|
165
165
|
__v: number;
|
|
166
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Sale, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Sale>, {}, import("mongoose").
|
|
166
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Sale, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Sale>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Sale> & Required<{
|
|
167
167
|
_id: Types.ObjectId;
|
|
168
168
|
}> & {
|
|
169
169
|
__v: number;
|
|
@@ -176,7 +176,7 @@ export declare const SaleModel: import("mongoose").Model<Sale, {}, {}, {}, impor
|
|
|
176
176
|
_id: Types.ObjectId;
|
|
177
177
|
}> & {
|
|
178
178
|
__v: number;
|
|
179
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Sale, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Sale>, {}, import("mongoose").
|
|
179
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Sale, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Sale>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Sale> & Required<{
|
|
180
180
|
_id: Types.ObjectId;
|
|
181
181
|
}> & {
|
|
182
182
|
__v: number;
|
|
@@ -44,7 +44,7 @@ export declare const ScriptDecisionSchema: MongooseSchema<ScriptDecision, import
|
|
|
44
44
|
_id: Types.ObjectId;
|
|
45
45
|
} & {
|
|
46
46
|
__v: number;
|
|
47
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScriptDecision, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScriptDecision>, {}, import("mongoose").
|
|
47
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScriptDecision, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScriptDecision>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ScriptDecision> & {
|
|
48
48
|
_id: Types.ObjectId;
|
|
49
49
|
} & {
|
|
50
50
|
__v: number;
|
|
@@ -58,7 +58,7 @@ export declare const ScriptStaffReplySchema: MongooseSchema<ScriptStaffReply, im
|
|
|
58
58
|
_id: Types.ObjectId;
|
|
59
59
|
} & {
|
|
60
60
|
__v: number;
|
|
61
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScriptStaffReply, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScriptStaffReply>, {}, import("mongoose").
|
|
61
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScriptStaffReply, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScriptStaffReply>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ScriptStaffReply> & {
|
|
62
62
|
_id: Types.ObjectId;
|
|
63
63
|
} & {
|
|
64
64
|
__v: number;
|
|
@@ -79,7 +79,7 @@ export declare const ScriptVersionSchema: MongooseSchema<ScriptVersion, import("
|
|
|
79
79
|
_id: Types.ObjectId;
|
|
80
80
|
} & {
|
|
81
81
|
__v: number;
|
|
82
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScriptVersion, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScriptVersion>, {}, import("mongoose").
|
|
82
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScriptVersion, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScriptVersion>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ScriptVersion> & {
|
|
83
83
|
_id: Types.ObjectId;
|
|
84
84
|
} & {
|
|
85
85
|
__v: number;
|
|
@@ -116,7 +116,7 @@ export declare const ScriptSchema: MongooseSchema<Script, import("mongoose").Mod
|
|
|
116
116
|
_id: Types.ObjectId;
|
|
117
117
|
}> & {
|
|
118
118
|
__v: number;
|
|
119
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Script, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Script>, {}, import("mongoose").
|
|
119
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Script, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Script>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Script> & Required<{
|
|
120
120
|
_id: Types.ObjectId;
|
|
121
121
|
}> & {
|
|
122
122
|
__v: number;
|
|
@@ -129,7 +129,7 @@ export declare const ScriptModel: import("mongoose").Model<Script, {}, {}, {}, i
|
|
|
129
129
|
_id: Types.ObjectId;
|
|
130
130
|
}> & {
|
|
131
131
|
__v: number;
|
|
132
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Script, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Script>, {}, import("mongoose").
|
|
132
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Script, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Script>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Script> & Required<{
|
|
133
133
|
_id: Types.ObjectId;
|
|
134
134
|
}> & {
|
|
135
135
|
__v: number;
|
|
@@ -47,7 +47,7 @@ export declare const SnapshotSchema: MongooseSchema<Snapshot, import("mongoose")
|
|
|
47
47
|
_id: Types.ObjectId;
|
|
48
48
|
}> & {
|
|
49
49
|
__v: number;
|
|
50
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Snapshot, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Snapshot>, {}, import("mongoose").
|
|
50
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Snapshot, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Snapshot>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Snapshot> & Required<{
|
|
51
51
|
_id: Types.ObjectId;
|
|
52
52
|
}> & {
|
|
53
53
|
__v: number;
|
|
@@ -60,7 +60,7 @@ export declare const SnapshotModel: import("mongoose").Model<Snapshot, {}, {}, {
|
|
|
60
60
|
_id: Types.ObjectId;
|
|
61
61
|
}> & {
|
|
62
62
|
__v: number;
|
|
63
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Snapshot, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Snapshot>, {}, import("mongoose").
|
|
63
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Snapshot, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Snapshot>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Snapshot> & Required<{
|
|
64
64
|
_id: Types.ObjectId;
|
|
65
65
|
}> & {
|
|
66
66
|
__v: number;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/session" />
|
|
19
|
+
/// <reference types="mongoose/types/types" />
|
|
20
|
+
/// <reference types="mongoose/types/utility" />
|
|
21
|
+
/// <reference types="mongoose/types/validation" />
|
|
22
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
23
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { Schema as MongooseSchema, Types } from 'mongoose';
|
|
27
|
+
import { Store } from './store.schema';
|
|
28
|
+
export declare const STORE_VISIT_STATUS_VALUES: readonly ["awaiting_confirmation", "confirmed", "awaiting_approval", "approved", "done", "finished"];
|
|
29
|
+
export type StoreVisitStatus = (typeof STORE_VISIT_STATUS_VALUES)[number];
|
|
30
|
+
export declare const STORE_VISIT_PERIOD_VALUES: readonly ["morning", "afternoon", "night"];
|
|
31
|
+
export type StoreVisitPeriod = (typeof STORE_VISIT_PERIOD_VALUES)[number];
|
|
32
|
+
export declare class StoreVisitData {
|
|
33
|
+
store: Types.ObjectId | Store;
|
|
34
|
+
scheduledDate: Date;
|
|
35
|
+
scheduledPeriod?: StoreVisitPeriod | null;
|
|
36
|
+
token: string;
|
|
37
|
+
rulesAccepted: boolean;
|
|
38
|
+
acceptedAt?: Date | null;
|
|
39
|
+
tagPhotos: string[];
|
|
40
|
+
lookPhotos: string[];
|
|
41
|
+
reviewNotes?: string | null;
|
|
42
|
+
}
|
|
43
|
+
export declare const StoreVisitDataSchema: MongooseSchema<StoreVisitData, import("mongoose").Model<StoreVisitData, any, any, any, import("mongoose").Document<unknown, any, StoreVisitData, any, {}> & StoreVisitData & {
|
|
44
|
+
_id: Types.ObjectId;
|
|
45
|
+
} & {
|
|
46
|
+
__v: number;
|
|
47
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, StoreVisitData, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<StoreVisitData>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<StoreVisitData> & {
|
|
48
|
+
_id: Types.ObjectId;
|
|
49
|
+
} & {
|
|
50
|
+
__v: number;
|
|
51
|
+
}>;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StoreVisitDataSchema = exports.StoreVisitData = exports.STORE_VISIT_PERIOD_VALUES = exports.STORE_VISIT_STATUS_VALUES = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const mongoose_2 = require("mongoose");
|
|
16
|
+
const store_schema_1 = require("./store.schema");
|
|
17
|
+
exports.STORE_VISIT_STATUS_VALUES = [
|
|
18
|
+
'awaiting_confirmation',
|
|
19
|
+
'confirmed',
|
|
20
|
+
'awaiting_approval',
|
|
21
|
+
'approved',
|
|
22
|
+
'done',
|
|
23
|
+
'finished', // Processo encerrado e notificação emitida
|
|
24
|
+
];
|
|
25
|
+
exports.STORE_VISIT_PERIOD_VALUES = [
|
|
26
|
+
'morning',
|
|
27
|
+
'afternoon',
|
|
28
|
+
'night',
|
|
29
|
+
];
|
|
30
|
+
let StoreVisitData = class StoreVisitData {
|
|
31
|
+
};
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({ example: '64bfc3a78d3f1e2a12345684', description: 'Loja física agendada' }),
|
|
34
|
+
(0, mongoose_1.Prop)({
|
|
35
|
+
type: mongoose_2.Schema.Types.ObjectId,
|
|
36
|
+
ref: store_schema_1.Store.name,
|
|
37
|
+
required: true,
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], StoreVisitData.prototype, "store", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({ example: '2026-11-15T00:00:00.000Z', description: 'Data da visita agendada pelo time' }),
|
|
43
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], StoreVisitData.prototype, "scheduledDate", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)({ example: 'afternoon', enum: exports.STORE_VISIT_PERIOD_VALUES, required: false, nullable: true }),
|
|
48
|
+
(0, mongoose_1.Prop)({ type: String, enum: exports.STORE_VISIT_PERIOD_VALUES, required: false, default: null }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], StoreVisitData.prototype, "scheduledPeriod", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiProperty)({ example: 'abcdef123456...', description: 'Token de 32 bytes base64url' }),
|
|
53
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], StoreVisitData.prototype, "token", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({ example: false, default: false }),
|
|
58
|
+
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], StoreVisitData.prototype, "rulesAccepted", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiProperty)({ example: null, required: false, nullable: true }),
|
|
63
|
+
(0, mongoose_1.Prop)({ type: Date, required: false, default: null }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], StoreVisitData.prototype, "acceptedAt", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiProperty)({ type: [String], example: [] }),
|
|
68
|
+
(0, mongoose_1.Prop)({ type: [String], default: [] }),
|
|
69
|
+
__metadata("design:type", Array)
|
|
70
|
+
], StoreVisitData.prototype, "tagPhotos", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({ type: [String], example: [] }),
|
|
73
|
+
(0, mongoose_1.Prop)({ type: [String], default: [] }),
|
|
74
|
+
__metadata("design:type", Array)
|
|
75
|
+
], StoreVisitData.prototype, "lookPhotos", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({ example: null, required: false, nullable: true }),
|
|
78
|
+
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], StoreVisitData.prototype, "reviewNotes", void 0);
|
|
81
|
+
StoreVisitData = __decorate([
|
|
82
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
83
|
+
], StoreVisitData);
|
|
84
|
+
exports.StoreVisitData = StoreVisitData;
|
|
85
|
+
exports.StoreVisitDataSchema = mongoose_1.SchemaFactory.createForClass(StoreVisitData);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/session" />
|
|
19
|
+
/// <reference types="mongoose/types/types" />
|
|
20
|
+
/// <reference types="mongoose/types/utility" />
|
|
21
|
+
/// <reference types="mongoose/types/validation" />
|
|
22
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
23
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
|
|
27
|
+
import { Address } from './party.schema';
|
|
28
|
+
import { Client } from './client.schema';
|
|
29
|
+
export type StoreDocument = HydratedDocument<Store>;
|
|
30
|
+
export declare class Store {
|
|
31
|
+
_id?: Types.ObjectId;
|
|
32
|
+
client: Types.ObjectId | Client;
|
|
33
|
+
name: string;
|
|
34
|
+
shopping?: string;
|
|
35
|
+
address?: Address;
|
|
36
|
+
active: boolean;
|
|
37
|
+
createdAt?: Date;
|
|
38
|
+
updatedAt?: Date;
|
|
39
|
+
}
|
|
40
|
+
export declare const StoreSchema: MongooseSchema<Store, import("mongoose").Model<Store, any, any, any, import("mongoose").Document<unknown, any, Store, any, {}> & Store & Required<{
|
|
41
|
+
_id: Types.ObjectId;
|
|
42
|
+
}> & {
|
|
43
|
+
__v: number;
|
|
44
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Store, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Store>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Store> & Required<{
|
|
45
|
+
_id: Types.ObjectId;
|
|
46
|
+
}> & {
|
|
47
|
+
__v: number;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const StoreModel: import("mongoose").Model<Store, {}, {}, {}, import("mongoose").Document<unknown, {}, Store, {}, import("mongoose").DefaultSchemaOptions> & Store & Required<{
|
|
50
|
+
_id: Types.ObjectId;
|
|
51
|
+
}> & {
|
|
52
|
+
__v: number;
|
|
53
|
+
}, MongooseSchema<Store, import("mongoose").Model<Store, any, any, any, import("mongoose").Document<unknown, any, Store, any, {}> & Store & Required<{
|
|
54
|
+
_id: Types.ObjectId;
|
|
55
|
+
}> & {
|
|
56
|
+
__v: number;
|
|
57
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Store, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Store>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Store> & Required<{
|
|
58
|
+
_id: Types.ObjectId;
|
|
59
|
+
}> & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}>>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StoreModel = exports.StoreSchema = exports.Store = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const mongoose_2 = require("mongoose");
|
|
16
|
+
const party_schema_1 = require("./party.schema");
|
|
17
|
+
const client_schema_1 = require("./client.schema");
|
|
18
|
+
let Store = class Store {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, swagger_1.ApiProperty)({ example: '64bfc3a78d3f1e2a12345670', required: false }),
|
|
22
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
23
|
+
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
24
|
+
], Store.prototype, "_id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ example: '64bfc3a78d3f1e2a12345682' }),
|
|
27
|
+
(0, mongoose_1.Prop)({
|
|
28
|
+
type: mongoose_2.Schema.Types.ObjectId,
|
|
29
|
+
ref: client_schema_1.Client.name,
|
|
30
|
+
required: true,
|
|
31
|
+
index: true,
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], Store.prototype, "client", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ example: 'Shoulder Shopping Morumbi' }),
|
|
37
|
+
(0, mongoose_1.Prop)({ type: String, required: true, trim: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Store.prototype, "name", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({ example: 'Morumbi Shopping', required: false }),
|
|
42
|
+
(0, mongoose_1.Prop)({ type: String, required: false, trim: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Store.prototype, "shopping", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
47
|
+
(0, mongoose_1.Prop)({ type: party_schema_1.AddressSchema, required: false }),
|
|
48
|
+
__metadata("design:type", party_schema_1.Address)
|
|
49
|
+
], Store.prototype, "address", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)({ example: true, default: true }),
|
|
52
|
+
(0, mongoose_1.Prop)({ type: Boolean, default: true }),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], Store.prototype, "active", void 0);
|
|
55
|
+
Store = __decorate([
|
|
56
|
+
(0, mongoose_1.Schema)({ timestamps: true, collection: 'stores' })
|
|
57
|
+
], Store);
|
|
58
|
+
exports.Store = Store;
|
|
59
|
+
exports.StoreSchema = mongoose_1.SchemaFactory.createForClass(Store);
|
|
60
|
+
exports.StoreSchema.index({ client: 1, name: 1 });
|
|
61
|
+
exports.StoreModel = (0, mongoose_2.model)('Store', exports.StoreSchema);
|
|
@@ -32,7 +32,7 @@ export declare const SupplierSchema: import("mongoose").Schema<Supplier, import(
|
|
|
32
32
|
_id: import("mongoose").Types.ObjectId;
|
|
33
33
|
}> & {
|
|
34
34
|
__v: number;
|
|
35
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Supplier, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Supplier>, {}, import("mongoose").
|
|
35
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Supplier, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Supplier>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Supplier> & Required<{
|
|
36
36
|
_id: import("mongoose").Types.ObjectId;
|
|
37
37
|
}> & {
|
|
38
38
|
__v: number;
|
|
@@ -45,7 +45,7 @@ export declare const SupplierModel: import("mongoose").Model<Supplier, {}, {}, {
|
|
|
45
45
|
_id: import("mongoose").Types.ObjectId;
|
|
46
46
|
}> & {
|
|
47
47
|
__v: number;
|
|
48
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Supplier, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Supplier>, {}, import("mongoose").
|
|
48
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Supplier, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Supplier>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Supplier> & Required<{
|
|
49
49
|
_id: import("mongoose").Types.ObjectId;
|
|
50
50
|
}> & {
|
|
51
51
|
__v: number;
|
|
@@ -37,7 +37,7 @@ export declare const TagSchema: import("mongoose").Schema<Tag, import("mongoose"
|
|
|
37
37
|
_id: Types.ObjectId;
|
|
38
38
|
} & {
|
|
39
39
|
__v: number;
|
|
40
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Tag, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Tag>, {}, import("mongoose").
|
|
40
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Tag, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Tag>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Tag> & {
|
|
41
41
|
_id: Types.ObjectId;
|
|
42
42
|
} & {
|
|
43
43
|
__v: number;
|
|
@@ -30,13 +30,14 @@ import { Content } from './content.schema';
|
|
|
30
30
|
import { Influencer } from './influencer.schema';
|
|
31
31
|
import { Profile } from './profile.schema';
|
|
32
32
|
import { Recruitment } from './recruitment.schema';
|
|
33
|
+
import { StoreVisitData } from './store-visit.schema';
|
|
33
34
|
export type TaskDocument = HydratedDocument<Task>;
|
|
34
35
|
export declare const TASK_FORMAT_VALUES: readonly ["reel", "image", "carousel", "story", "tiktok", "youtube", "linkedin", "pinterest"];
|
|
35
36
|
export type TaskFormat = (typeof TASK_FORMAT_VALUES)[number];
|
|
36
|
-
export declare const TASK_TYPE_VALUES: readonly ["briefing", "script", "production", "posting", "analytics", "diagnosis"];
|
|
37
|
+
export declare const TASK_TYPE_VALUES: readonly ["briefing", "script", "production", "posting", "analytics", "diagnosis", "store_visit"];
|
|
37
38
|
export type TaskType = (typeof TASK_TYPE_VALUES)[number];
|
|
38
39
|
export declare const TASK_STATUS_BY_TYPE: Record<TaskType, string[]>;
|
|
39
|
-
export type TaskStatus = 'awaiting' | 'pending' | 'late' | 'done' | 'cancelled' | 'approval' | 'rework';
|
|
40
|
+
export type TaskStatus = 'awaiting' | 'pending' | 'late' | 'done' | 'cancelled' | 'approval' | 'rework' | 'awaiting_confirmation' | 'confirmed' | 'awaiting_approval' | 'approved' | 'finished';
|
|
40
41
|
export declare const TASK_STATUS_VALUES: TaskStatus[];
|
|
41
42
|
export declare class Task {
|
|
42
43
|
_id?: Types.ObjectId;
|
|
@@ -58,12 +59,13 @@ export declare class Task {
|
|
|
58
59
|
observation?: string;
|
|
59
60
|
organization: Types.ObjectId;
|
|
60
61
|
businessUnit?: ActionBusinessUnit;
|
|
62
|
+
storeVisit?: StoreVisitData;
|
|
61
63
|
}
|
|
62
64
|
export declare const TaskSchema: MongooseSchema<Task, import("mongoose").Model<Task, any, any, any, import("mongoose").Document<unknown, any, Task, any, {}> & Task & Required<{
|
|
63
65
|
_id: Types.ObjectId;
|
|
64
66
|
}> & {
|
|
65
67
|
__v: number;
|
|
66
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Task, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Task>, {}, import("mongoose").
|
|
68
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Task, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Task>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Task> & Required<{
|
|
67
69
|
_id: Types.ObjectId;
|
|
68
70
|
}> & {
|
|
69
71
|
__v: number;
|
|
@@ -76,7 +78,7 @@ export declare const TaskModel: import("mongoose").Model<Task, {}, {}, {}, impor
|
|
|
76
78
|
_id: Types.ObjectId;
|
|
77
79
|
}> & {
|
|
78
80
|
__v: number;
|
|
79
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Task, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Task>, {}, import("mongoose").
|
|
81
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Task, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Task>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Task> & Required<{
|
|
80
82
|
_id: Types.ObjectId;
|
|
81
83
|
}> & {
|
|
82
84
|
__v: number;
|