repzo 1.0.88 → 1.0.90

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/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  Params,
3
3
  Data,
4
4
  Service,
@@ -699,10 +699,6 @@ export default class Repzo {
699
699
  create: (
700
700
  body: Service.Settlement.Create.Body
701
701
  ) => Promise<Service.Settlement.Create.Result>;
702
- update: (
703
- id: Service.Settlement.Update.ID,
704
- body: Service.Settlement.Update.Body
705
- ) => Promise<Service.Settlement.Update.Result>;
706
702
  };
707
703
  check: {
708
704
  _path: string;
package/lib/index.js CHANGED
@@ -1437,14 +1437,6 @@ export default class Repzo {
1437
1437
  );
1438
1438
  return res;
1439
1439
  },
1440
- update: async (id, body) => {
1441
- let res = await this._update(
1442
- this.svAPIEndpoint,
1443
- this.settlement._path + `/${id}`,
1444
- body
1445
- );
1446
- return res;
1447
- },
1448
1440
  };
1449
1441
  this.check = {
1450
1442
  _path: "/checks",
@@ -6286,9 +6286,10 @@ export declare namespace Service {
6286
6286
  };
6287
6287
  origin: {
6288
6288
  _id: string;
6289
- type: "rep";
6289
+ type: "rep" | "admin";
6290
6290
  name: string;
6291
6291
  rep?: string;
6292
+ admin?: string;
6292
6293
  };
6293
6294
  time?: number;
6294
6295
  serial_number: SerialNumber;
@@ -6306,19 +6307,6 @@ export declare namespace Service {
6306
6307
  export interface CreateBody {
6307
6308
  amount: number;
6308
6309
  time?: number;
6309
- serial_number: SerialNumber;
6310
- paytime: string;
6311
- note?: string;
6312
- payment_type: "check" | "cash";
6313
- check_id?: string;
6314
- teams: string[];
6315
- company_namespace: string[];
6316
- sync_id: string;
6317
- transaction_processed: boolean;
6318
- }
6319
- export interface UpdateBody {
6320
- _id?: string;
6321
- amount?: number;
6322
6310
  creator?: {
6323
6311
  _id: string;
6324
6312
  type: "admin" | "rep";
@@ -6326,22 +6314,22 @@ export declare namespace Service {
6326
6314
  rep?: string;
6327
6315
  name: string;
6328
6316
  };
6329
- origin?: {
6317
+ origin: {
6330
6318
  _id: string;
6331
- type: "rep";
6319
+ type: "rep" | "admin";
6332
6320
  name: string;
6333
6321
  rep?: string;
6322
+ admin?: string;
6334
6323
  };
6335
- time?: number;
6336
- serial_number?: SerialNumber;
6337
- paytime?: string;
6324
+ serial_number: SerialNumber;
6325
+ paytime: string;
6338
6326
  note?: string;
6339
- payment_type?: "check" | "cash";
6327
+ payment_type: "check" | "cash";
6340
6328
  check_id?: string;
6341
- teams?: string[];
6342
- company_namespace?: string[];
6343
- sync_id?: string;
6344
- transaction_processed?: boolean;
6329
+ teams: string[];
6330
+ company_namespace: string[];
6331
+ sync_id: string;
6332
+ transaction_processed: boolean;
6345
6333
  }
6346
6334
  type SettlementSchemaWithPopulatedKeys = SettlementSchema & {
6347
6335
  teams_populated?: string[] | Team.TeamSchema[];
@@ -6350,9 +6338,15 @@ export declare namespace Service {
6350
6338
  type PopulatedKeys = "teams" | "check_id";
6351
6339
  export namespace Find {
6352
6340
  type Params = DefaultPaginationQueryParams & {
6353
- _id?: string[] | string;
6354
- "creator._id"?: string[] | string;
6355
- "origin._id"?: string[] | string;
6341
+ _id?: StringId[] | StringId;
6342
+ "creator._id"?: StringId[] | StringId;
6343
+ "origin._id"?: StringId[] | StringId;
6344
+ creator?: StringId[] | StringId;
6345
+ origin?: StringId[] | StringId;
6346
+ "creator.type"?: string[] | string;
6347
+ "origin.type"?: string[] | string;
6348
+ creator_type?: string[] | string;
6349
+ origin_type?: string[] | string;
6356
6350
  amount?: number;
6357
6351
  payment_type?: string;
6358
6352
  from_createdAt?: number;
@@ -6378,11 +6372,6 @@ export declare namespace Service {
6378
6372
  type Body = CreateBody;
6379
6373
  type Result = SettlementSchema;
6380
6374
  }
6381
- export namespace Update {
6382
- type ID = string;
6383
- type Body = UpdateBody;
6384
- type Result = SettlementSchema;
6385
- }
6386
6375
  export {};
6387
6376
  }
6388
6377
  namespace Check {
@@ -7151,7 +7140,7 @@ export declare namespace Service {
7151
7140
  description?: string;
7152
7141
  company_namespace: string[];
7153
7142
  name?: string;
7154
- type: "client" | "rep" | "namespace";
7143
+ type: "client" | "rep" | "namespace" | "admin";
7155
7144
  cash?: number;
7156
7145
  check?: number;
7157
7146
  credit?: number;
@@ -7203,7 +7192,7 @@ export declare namespace Service {
7203
7192
  description?: string;
7204
7193
  company_namespace: string[];
7205
7194
  name?: string;
7206
- type: "client" | "rep" | "namespace";
7195
+ type: "client" | "rep" | "namespace" | "admin";
7207
7196
  cash?: number;
7208
7197
  check?: number;
7209
7198
  credit?: number;
@@ -10330,6 +10319,14 @@ export declare namespace Service {
10330
10319
  editor?: AdminOrRep;
10331
10320
  createdAt: Date;
10332
10321
  updatedAt: Date;
10322
+ page_usage?: {
10323
+ input_tokens: number;
10324
+ output_tokens: number;
10325
+ weighted_input_tokens: number;
10326
+ weighted_output_tokens: number;
10327
+ total_weighted_tokens: number;
10328
+ ai_model?: "gpt-4o" | "gpt-4o-mini";
10329
+ };
10333
10330
  }
10334
10331
  interface PopulatedDoc {
10335
10332
  _id: StringId;
@@ -10368,6 +10365,14 @@ export declare namespace Service {
10368
10365
  editor?: AdminOrRep;
10369
10366
  createdAt: Date;
10370
10367
  updatedAt: Date;
10368
+ page_usage?: {
10369
+ input_tokens: number;
10370
+ output_tokens: number;
10371
+ weighted_input_tokens: number;
10372
+ weighted_output_tokens: number;
10373
+ total_weighted_tokens: number;
10374
+ ai_model?: "gpt-4o" | "gpt-4o-mini";
10375
+ };
10371
10376
  }
10372
10377
  interface UpdateBody {
10373
10378
  disabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import axios from "axios";
2
2
  import { v4 as uuid } from "uuid";
3
- import {
3
+ import type {
4
4
  Params,
5
5
  Data,
6
6
  Service,
@@ -2055,18 +2055,6 @@ export default class Repzo {
2055
2055
  );
2056
2056
  return res;
2057
2057
  },
2058
-
2059
- update: async (
2060
- id: Service.Settlement.Update.ID,
2061
- body: Service.Settlement.Update.Body
2062
- ): Promise<Service.Settlement.Update.Result> => {
2063
- let res: Service.Settlement.Update.Result = await this._update(
2064
- this.svAPIEndpoint,
2065
- this.settlement._path + `/${id}`,
2066
- body
2067
- );
2068
- return res;
2069
- },
2070
2058
  };
2071
2059
 
2072
2060
  check = {
@@ -6296,9 +6296,10 @@ export namespace Service {
6296
6296
  };
6297
6297
  origin: {
6298
6298
  _id: string;
6299
- type: "rep";
6299
+ type: "rep" | "admin";
6300
6300
  name: string;
6301
6301
  rep?: string;
6302
+ admin?: string;
6302
6303
  };
6303
6304
  time?: number;
6304
6305
  serial_number: SerialNumber;
@@ -6316,19 +6317,6 @@ export namespace Service {
6316
6317
  export interface CreateBody {
6317
6318
  amount: number;
6318
6319
  time?: number;
6319
- serial_number: SerialNumber;
6320
- paytime: string;
6321
- note?: string;
6322
- payment_type: "check" | "cash";
6323
- check_id?: string;
6324
- teams: string[];
6325
- company_namespace: string[];
6326
- sync_id: string;
6327
- transaction_processed: boolean;
6328
- }
6329
- export interface UpdateBody {
6330
- _id?: string;
6331
- amount?: number;
6332
6320
  creator?: {
6333
6321
  _id: string;
6334
6322
  type: "admin" | "rep";
@@ -6336,22 +6324,22 @@ export namespace Service {
6336
6324
  rep?: string;
6337
6325
  name: string;
6338
6326
  };
6339
- origin?: {
6327
+ origin: {
6340
6328
  _id: string;
6341
- type: "rep";
6329
+ type: "rep" | "admin";
6342
6330
  name: string;
6343
6331
  rep?: string;
6332
+ admin?: string;
6344
6333
  };
6345
- time?: number;
6346
- serial_number?: SerialNumber;
6347
- paytime?: string;
6334
+ serial_number: SerialNumber;
6335
+ paytime: string;
6348
6336
  note?: string;
6349
- payment_type?: "check" | "cash";
6337
+ payment_type: "check" | "cash";
6350
6338
  check_id?: string;
6351
- teams?: string[];
6352
- company_namespace?: string[];
6353
- sync_id?: string;
6354
- transaction_processed?: boolean;
6339
+ teams: string[];
6340
+ company_namespace: string[];
6341
+ sync_id: string;
6342
+ transaction_processed: boolean;
6355
6343
  }
6356
6344
 
6357
6345
  type SettlementSchemaWithPopulatedKeys = SettlementSchema & {
@@ -6361,9 +6349,15 @@ export namespace Service {
6361
6349
  type PopulatedKeys = "teams" | "check_id";
6362
6350
  export namespace Find {
6363
6351
  export type Params = DefaultPaginationQueryParams & {
6364
- _id?: string[] | string;
6365
- "creator._id"?: string[] | string;
6366
- "origin._id"?: string[] | string;
6352
+ _id?: StringId[] | StringId;
6353
+ "creator._id"?: StringId[] | StringId;
6354
+ "origin._id"?: StringId[] | StringId;
6355
+ creator?: StringId[] | StringId;
6356
+ origin?: StringId[] | StringId;
6357
+ "creator.type"?: string[] | string;
6358
+ "origin.type"?: string[] | string;
6359
+ creator_type?: string[] | string;
6360
+ origin_type?: string[] | string;
6367
6361
  amount?: number;
6368
6362
  payment_type?: string;
6369
6363
  from_createdAt?: number;
@@ -6391,12 +6385,6 @@ export namespace Service {
6391
6385
  export type Body = CreateBody;
6392
6386
  export type Result = SettlementSchema;
6393
6387
  }
6394
-
6395
- export namespace Update {
6396
- export type ID = string;
6397
- export type Body = UpdateBody;
6398
- export type Result = SettlementSchema;
6399
- }
6400
6388
  }
6401
6389
 
6402
6390
  export namespace Check {
@@ -7149,7 +7137,7 @@ export namespace Service {
7149
7137
  description?: string;
7150
7138
  company_namespace: string[];
7151
7139
  name?: string;
7152
- type: "client" | "rep" | "namespace";
7140
+ type: "client" | "rep" | "namespace" | "admin";
7153
7141
  cash?: number;
7154
7142
  check?: number;
7155
7143
  credit?: number;
@@ -7201,7 +7189,7 @@ export namespace Service {
7201
7189
  description?: string;
7202
7190
  company_namespace: string[];
7203
7191
  name?: string;
7204
- type: "client" | "rep" | "namespace";
7192
+ type: "client" | "rep" | "namespace" | "admin";
7205
7193
  cash?: number;
7206
7194
  check?: number;
7207
7195
  credit?: number;
@@ -10145,6 +10133,14 @@ export namespace Service {
10145
10133
  editor?: AdminOrRep;
10146
10134
  createdAt: Date;
10147
10135
  updatedAt: Date;
10136
+ page_usage?: {
10137
+ input_tokens: number;
10138
+ output_tokens: number;
10139
+ weighted_input_tokens: number;
10140
+ weighted_output_tokens: number;
10141
+ total_weighted_tokens: number;
10142
+ ai_model?: "gpt-4o" | "gpt-4o-mini";
10143
+ };
10148
10144
  }
10149
10145
  export interface PopulatedDoc {
10150
10146
  _id: StringId;
@@ -10183,6 +10179,14 @@ export namespace Service {
10183
10179
  editor?: AdminOrRep;
10184
10180
  createdAt: Date;
10185
10181
  updatedAt: Date;
10182
+ page_usage?: {
10183
+ input_tokens: number;
10184
+ output_tokens: number;
10185
+ weighted_input_tokens: number;
10186
+ weighted_output_tokens: number;
10187
+ total_weighted_tokens: number;
10188
+ ai_model?: "gpt-4o" | "gpt-4o-mini";
10189
+ };
10186
10190
  }
10187
10191
  export interface UpdateBody {
10188
10192
  disabled: boolean;