@ibiliaze/global-vars 1.258.0 → 1.260.0

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.
@@ -249,6 +249,7 @@ export interface EventBase<Id, TDate> {
249
249
  date: TDate;
250
250
  venueId: string;
251
251
  typeId: Id;
252
+ buyLimit: number;
252
253
  imgSrc?: string;
253
254
  description?: string;
254
255
  descriptionLangs?: NameLangs;
@@ -263,6 +264,7 @@ export interface SeasonBase<Id, TDate> {
263
264
  name: string;
264
265
  nameLangs?: NameLangs;
265
266
  typeIds: Id[];
267
+ buyLimit: number;
266
268
  description?: string;
267
269
  descriptionLangs?: NameLangs;
268
270
  startDate: TDate;
@@ -274,8 +276,6 @@ export interface SeasonBase<Id, TDate> {
274
276
  export interface FlowBase<Id, TDate> {
275
277
  _id?: Id;
276
278
  name: string;
277
- buyLimit: number;
278
- reserveLimit: number;
279
279
  description?: string;
280
280
  paymentTypes: PSPType[];
281
281
  type: (typeof flows)[number];
@@ -1,5 +1,5 @@
1
1
  import type { SaleBase } from '../inputsDefault';
2
- import type { SaleCustomer, SaleFlows, SalePayments, SalePerformanceBase, SaleRevenue, SaleSectors } from '../sale';
2
+ import type { SaleCustomer, SaleFlows, SalePayments, SalePerformanceBase, SaleRevenue, SaleSectors, SegmentedCustomerRow } from '../sale';
3
3
  export declare const saleRoleDefs: <TId, TDate>() => readonly [{
4
4
  readonly method: "post";
5
5
  readonly path: "/sale";
@@ -26,6 +26,19 @@ export declare const saleRoleDefs: <TId, TDate>() => readonly [{
26
26
  message: string;
27
27
  error: string;
28
28
  };
29
+ }, {
30
+ readonly method: "get";
31
+ readonly path: "/sale/customer/segment/:segmentType";
32
+ readonly role: "getSalesCustomerPerSegment";
33
+ readonly name: "Get sales customers per sale segment";
34
+ readonly response_200: {
35
+ customers: SegmentedCustomerRow[];
36
+ count: number;
37
+ };
38
+ readonly response_500: {
39
+ message: string;
40
+ error: string;
41
+ };
29
42
  }, {
30
43
  readonly method: "get";
31
44
  readonly path: "/sale";
@@ -19,6 +19,14 @@ const saleRoleDefs = () => {
19
19
  response_200: {},
20
20
  response_500: {},
21
21
  },
22
+ {
23
+ method: 'get',
24
+ path: '/sale/customer/segment/:segmentType',
25
+ role: 'getSalesCustomerPerSegment',
26
+ name: 'Get sales customers per sale segment',
27
+ response_200: {},
28
+ response_500: {},
29
+ },
22
30
  {
23
31
  method: 'get',
24
32
  path: '/sale',
@@ -1624,6 +1624,19 @@ export declare const apis: <TId, TDate>() => readonly [{
1624
1624
  message: string;
1625
1625
  error: string;
1626
1626
  };
1627
+ }, {
1628
+ readonly method: "get";
1629
+ readonly path: "/sale/customer/segment/:segmentType";
1630
+ readonly role: "getSalesCustomerPerSegment";
1631
+ readonly name: "Get sales customers per sale segment";
1632
+ readonly response_200: {
1633
+ customers: import("./sale").SegmentedCustomerRow[];
1634
+ count: number;
1635
+ };
1636
+ readonly response_500: {
1637
+ message: string;
1638
+ error: string;
1639
+ };
1627
1640
  }, {
1628
1641
  readonly method: "get";
1629
1642
  readonly path: "/sale";
@@ -4249,6 +4262,19 @@ declare const allApis: readonly [{
4249
4262
  message: string;
4250
4263
  error: string;
4251
4264
  };
4265
+ }, {
4266
+ readonly method: "get";
4267
+ readonly path: "/sale/customer/segment/:segmentType";
4268
+ readonly role: "getSalesCustomerPerSegment";
4269
+ readonly name: "Get sales customers per sale segment";
4270
+ readonly response_200: {
4271
+ customers: import("./sale").SegmentedCustomerRow[];
4272
+ count: number;
4273
+ };
4274
+ readonly response_500: {
4275
+ message: string;
4276
+ error: string;
4277
+ };
4252
4278
  }, {
4253
4279
  readonly method: "get";
4254
4280
  readonly path: "/sale";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiliaze/global-vars",
3
- "version": "1.258.0",
3
+ "version": "1.260.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,
@@ -22,7 +22,7 @@
22
22
  "scripts": {
23
23
  "build": "tsc",
24
24
  "pub": "npm publish --access public",
25
- "git": "git add .; git commit -m 'changes'; git tag -a v1.258.0 -m 'v1.258.0'; git push origin v1.258.0; git push",
25
+ "git": "git add .; git commit -m 'changes'; git tag -a v1.260.0 -m 'v1.260.0'; git push origin v1.260.0; git push",
26
26
  "push": "npm run build; npm run git; npm run pub"
27
27
  },
28
28
  "author": "Ibi Hasanli",