@zauru-sdk/types 6.26.0 → 6.28.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.
@@ -985,6 +985,47 @@ export type ReceptionType = {
985
985
  Codigo: string;
986
986
  Nombre: string;
987
987
  };
988
+ export type ProviderRestrictionMode = "include" | "exclude";
989
+ export type ProviderRestrictionRule = {
990
+ payee_id: number;
991
+ mode: ProviderRestrictionMode;
992
+ values: Array<string | number>;
993
+ start_date?: string;
994
+ end_date?: string;
995
+ motivo?: string;
996
+ fechaEliminacion?: string;
997
+ };
998
+ export type ProviderRestrictionCheckResult = {
999
+ allowed: true;
1000
+ } | {
1001
+ allowed: false;
1002
+ title: string;
1003
+ description: string;
1004
+ mode: ProviderRestrictionMode;
1005
+ matchedValues: string[];
1006
+ };
1007
+ export type ProviderReceptionExceptionMode = "allow" | "block";
1008
+ /**
1009
+ * Permanent matrix state for one provider and reception type.
1010
+ * Missing rows and missing item ids are allowed by default.
1011
+ */
1012
+ export type ProviderReceptionBlockRule = {
1013
+ payee_id: number;
1014
+ reception_type_code: string;
1015
+ blocked_item_ids: Array<string | number>;
1016
+ fechaEliminacion?: string;
1017
+ };
1018
+ /** A dated override applied on top of the permanent provider matrix. */
1019
+ export type ProviderReceptionException = {
1020
+ payee_id: number;
1021
+ reception_type_code: string;
1022
+ mode: ProviderReceptionExceptionMode;
1023
+ item_ids: Array<string | number>;
1024
+ start_date: string;
1025
+ end_date: string;
1026
+ motivo: string;
1027
+ fechaEliminacion?: string;
1028
+ };
988
1029
  export type QueueShipmentsForm = {
989
1030
  creadoPor: string;
990
1031
  fechaCreacion: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/types",
3
- "version": "6.26.0",
3
+ "version": "6.28.0",
4
4
  "description": "Estructuras de Zauru, tipado de modelos y modelos personalizados.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -22,5 +22,5 @@
22
22
  "devDependencies": {
23
23
  "typescript": "^5.1.6"
24
24
  },
25
- "gitHead": "868c8fc18ec36bd771fbd2b3886d15b6d68fb7bb"
25
+ "gitHead": "2fda4a18e3f62d22c38fbb91052869db9ebc16f4"
26
26
  }