@grapadigital/shared-schemas 2.2.0 → 2.2.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.
@@ -51,6 +51,27 @@ export declare const ClientSquadSchema: MongooseSchema<ClientSquad, import("mong
51
51
  } & {
52
52
  __v: number;
53
53
  }>;
54
+ /**
55
+ * Informações de faturamento padrão para formalização de vendas deste cliente.
56
+ * Ver GD-680 / GD-681.
57
+ */
58
+ export declare class ClientBillingDefaults {
59
+ /** Evento gatilho para faturamento (ex.: Veiculação da Postagem, Fechamento do Contrato). */
60
+ billingTriggerEvent?: string;
61
+ /** Termos e condições comerciais de pagamento habituais do cliente. */
62
+ paymentTerms?: string;
63
+ /** Orientações para envio ou tratamento de notas fiscais. */
64
+ handlingInvoices?: string;
65
+ }
66
+ export declare const ClientBillingDefaultsSchema: MongooseSchema<ClientBillingDefaults, import("mongoose").Model<ClientBillingDefaults, any, any, any, import("mongoose").Document<unknown, any, ClientBillingDefaults, any, {}> & ClientBillingDefaults & {
67
+ _id: Types.ObjectId;
68
+ } & {
69
+ __v: number;
70
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ClientBillingDefaults, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ClientBillingDefaults>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ClientBillingDefaults> & {
71
+ _id: Types.ObjectId;
72
+ } & {
73
+ __v: number;
74
+ }>;
54
75
  export declare class Company {
55
76
  legalName: string;
56
77
  document: string;
@@ -209,6 +230,8 @@ export declare class Client extends Party {
209
230
  annualGoals: ClientAnnualGoal[];
210
231
  /** Squads do cliente, para qualquer cliente. Ver `ClientSquad` e GD-770. */
211
232
  squads: ClientSquad[];
233
+ /** Informações de faturamento padrão para formalização de vendas deste cliente. Ver GD-680 / GD-681. */
234
+ billingDefaults?: ClientBillingDefaults;
212
235
  /**
213
236
  * Client de organização (ex.: "Oma Creators"): representa a organização
214
237
  * inteira, não uma marca. No hub, mostra todas as actions dessa organização
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ClientModel = exports.ClientSchema = exports.Client = exports.ClientResponsibleSchema = exports.ClientResponsible = exports.NicheItemSchema = exports.NicheItem = exports.AgencyCommissionPeriodSchema = exports.AgencyCommissionPeriod = exports.ClientAnnualGoalSchema = exports.ClientAnnualGoal = exports.ClientTierSchema = exports.ClientTier = exports.ClientMetricGoalSchema = exports.ClientMetricGoal = exports.CommissionRangeSchema = exports.CommissionRange = exports.CompanySchema = exports.Company = exports.ClientSquadSchema = exports.ClientSquad = exports.ClusterSchema = exports.Cluster = exports.CLIENT_GOAL_METRIC_UNITS = exports.CLIENT_GOAL_METRIC_VALUES = exports.CLIENT_CUSTOMIZATION_VALUES = void 0;
12
+ exports.ClientModel = exports.ClientSchema = exports.Client = exports.ClientResponsibleSchema = exports.ClientResponsible = exports.NicheItemSchema = exports.NicheItem = exports.AgencyCommissionPeriodSchema = exports.AgencyCommissionPeriod = exports.ClientAnnualGoalSchema = exports.ClientAnnualGoal = exports.ClientTierSchema = exports.ClientTier = exports.ClientMetricGoalSchema = exports.ClientMetricGoal = exports.CommissionRangeSchema = exports.CommissionRange = exports.CompanySchema = exports.Company = exports.ClientBillingDefaultsSchema = exports.ClientBillingDefaults = exports.ClientSquadSchema = exports.ClientSquad = exports.ClusterSchema = exports.Cluster = exports.CLIENT_GOAL_METRIC_UNITS = exports.CLIENT_GOAL_METRIC_VALUES = exports.CLIENT_CUSTOMIZATION_VALUES = void 0;
13
13
  const mongoose_1 = require("@nestjs/mongoose");
14
14
  const swagger_1 = require("@nestjs/swagger");
15
15
  const mongoose_2 = require("mongoose");
@@ -102,6 +102,29 @@ exports.ClientSquad = ClientSquad = __decorate([
102
102
  (0, mongoose_1.Schema)({ _id: false })
103
103
  ], ClientSquad);
104
104
  exports.ClientSquadSchema = mongoose_1.SchemaFactory.createForClass(ClientSquad);
105
+ /**
106
+ * Informações de faturamento padrão para formalização de vendas deste cliente.
107
+ * Ver GD-680 / GD-681.
108
+ */
109
+ let ClientBillingDefaults = class ClientBillingDefaults {
110
+ };
111
+ exports.ClientBillingDefaults = ClientBillingDefaults;
112
+ __decorate([
113
+ (0, mongoose_1.Prop)({ type: String, required: false }),
114
+ __metadata("design:type", String)
115
+ ], ClientBillingDefaults.prototype, "billingTriggerEvent", void 0);
116
+ __decorate([
117
+ (0, mongoose_1.Prop)({ type: String, required: false }),
118
+ __metadata("design:type", String)
119
+ ], ClientBillingDefaults.prototype, "paymentTerms", void 0);
120
+ __decorate([
121
+ (0, mongoose_1.Prop)({ type: String, required: false }),
122
+ __metadata("design:type", String)
123
+ ], ClientBillingDefaults.prototype, "handlingInvoices", void 0);
124
+ exports.ClientBillingDefaults = ClientBillingDefaults = __decorate([
125
+ (0, mongoose_1.Schema)({ _id: false })
126
+ ], ClientBillingDefaults);
127
+ exports.ClientBillingDefaultsSchema = mongoose_1.SchemaFactory.createForClass(ClientBillingDefaults);
105
128
  let Company = class Company {
106
129
  };
107
130
  exports.Company = Company;
@@ -324,6 +347,10 @@ __decorate([
324
347
  (0, mongoose_1.Prop)({ type: [exports.ClientSquadSchema], default: [] }),
325
348
  __metadata("design:type", Array)
326
349
  ], Client.prototype, "squads", void 0);
350
+ __decorate([
351
+ (0, mongoose_1.Prop)({ type: exports.ClientBillingDefaultsSchema, required: false }),
352
+ __metadata("design:type", ClientBillingDefaults)
353
+ ], Client.prototype, "billingDefaults", void 0);
327
354
  __decorate([
328
355
  (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Organization", required: false }),
329
356
  __metadata("design:type", mongoose_2.Types.ObjectId)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",