@tolinax/ayoune-interfaces 2024.2.13 → 2024.2.15

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.
@@ -7,6 +7,88 @@ import { IRequirement } from "./IRequirement";
7
7
  import { IComment } from "./IComment";
8
8
  import { IWarning } from "./IWarning";
9
9
  import { IFreeFields } from "./IFreeFields";
10
+ interface IContractPayPalPlanFixedPrice {
11
+ value: string;
12
+ currency_code: string;
13
+ }
14
+ interface IContractPayPalPlanPricingScheme {
15
+ fixed_price: IContractPayPalPlanFixedPrice;
16
+ }
17
+ interface IContractPayPalPlanFrequency {
18
+ interval_unit: string;
19
+ interval_count: number;
20
+ }
21
+ interface IContractPayPalPlanBillingCycles {
22
+ frequency: IContractPayPalPlanFrequency;
23
+ tenure_type: string;
24
+ sequence?: number;
25
+ total_cycles?: number;
26
+ pricing_scheme: IContractPayPalPlanPricingScheme;
27
+ }
28
+ interface IContractPayPalPlanSetupFee {
29
+ value: number;
30
+ currency_code: string;
31
+ }
32
+ interface IContractPayPalPlanPaymentPreferences {
33
+ service_type: string;
34
+ auto_bill_outstanding: boolean;
35
+ setup_fee: IContractPayPalPlanSetupFee;
36
+ setup_fee_failure_action: string;
37
+ payment_failure_threshold: number;
38
+ }
39
+ interface IContractPayPalPlanTaxes {
40
+ percentage: number;
41
+ inclusive: boolean;
42
+ }
43
+ interface IContractPayPalPlan {
44
+ paypalAccount: string;
45
+ plan_id: string;
46
+ product_id: string;
47
+ name: string;
48
+ description: string;
49
+ status: string;
50
+ usage_type: string;
51
+ billing_cycles: IContractPayPalPlanBillingCycles[];
52
+ payment_preferences: IContractPayPalPlanPaymentPreferences;
53
+ taxes: IContractPayPalPlanTaxes;
54
+ quantity_supported: boolean;
55
+ }
56
+ interface IContractPaypalSubscription {
57
+ paypalAccount?: string;
58
+ sub_id?: string;
59
+ status?: string;
60
+ status_update_time?: Date;
61
+ plan_id?: string;
62
+ start_time?: Date;
63
+ quantity?: string;
64
+ shipping_amount?: {
65
+ currency_code?: string;
66
+ value?: string;
67
+ };
68
+ subscriber?: {
69
+ name?: {
70
+ given_name?: string;
71
+ surname?: string;
72
+ };
73
+ email_address?: string;
74
+ shipping_address?: {
75
+ name?: {
76
+ full_name?: string;
77
+ };
78
+ address?: {
79
+ address_line_1?: string;
80
+ address_line_2?: string;
81
+ admin_area_2?: string;
82
+ admin_area_1?: string;
83
+ postal_code?: string;
84
+ country_code?: string;
85
+ };
86
+ };
87
+ };
88
+ auto_renewal?: boolean;
89
+ create_time?: Date;
90
+ links?: any[];
91
+ }
10
92
  export interface IContract extends IDefaultFields, IFreeFields {
11
93
  shortID: string;
12
94
  _customerID: ObjectId;
@@ -112,8 +194,8 @@ export interface IContract extends IDefaultFields, IFreeFields {
112
194
  total_part: number;
113
195
  external_monthly_part: number;
114
196
  external_total_part: number;
115
- paypalPlan: any;
116
- paypalSubscription: any;
197
+ paypalPlan: IContractPayPalPlan;
198
+ paypalSubscription: IContractPaypalSubscription;
117
199
  locale: string;
118
200
  currency: string;
119
201
  foreignCountry: boolean;
@@ -124,3 +206,4 @@ export interface IContract extends IDefaultFields, IFreeFields {
124
206
  requirements: IRequirement[];
125
207
  warnings: IWarning[];
126
208
  }
209
+ export {};
@@ -1,4 +1,47 @@
1
1
  import { IDefaultFields } from "./IDefaultFields";
2
+ import { IAttributeValue } from "./IAttributeValue";
3
+ interface IMachineCost {
4
+ kind?: string;
5
+ label?: string;
6
+ cost?: number;
7
+ costCenter?: string;
8
+ }
9
+ export interface IMachineTool {
10
+ product?: string;
11
+ name?: string;
12
+ unit?: string;
13
+ ready?: boolean;
14
+ qty?: number;
15
+ qtyInStock?: number;
16
+ qtyInProduction?: number;
17
+ qtyLocked?: number;
18
+ qtyConsumed?: number;
19
+ blend?: number;
20
+ serviceLife?: number;
21
+ costCenter?: string;
22
+ }
23
+ interface IMachineComponentMonitoringValues {
24
+ name?: string;
25
+ currentValue?: number;
26
+ maxValue?: number;
27
+ minValue?: number;
28
+ avgValue?: number;
29
+ avgValue5min?: number;
30
+ avgValue10min?: number;
31
+ avgValue60min?: number;
32
+ alertOn?: string;
33
+ alertValue?: number;
34
+ }
35
+ interface IMonitoring {
36
+ values?: IMachineComponentMonitoringValues[];
37
+ }
38
+ interface IMachineComponent {
39
+ name?: string;
40
+ nbr?: string;
41
+ code?: string;
42
+ attributes?: IAttributeValue[];
43
+ monitoring?: IMonitoring;
44
+ }
2
45
  export interface IMachine extends IDefaultFields {
3
46
  _customerID: ObjectId;
4
47
  _clientID: ObjectId[];
@@ -65,11 +108,11 @@ export interface IMachine extends IDefaultFields {
65
108
  lost: number;
66
109
  load: number;
67
110
  performance: number;
68
- costs: any[];
69
- tools: any[];
70
- attributes: any[];
71
- components: any[];
72
- resources: any[];
111
+ costs: IMachineCost[];
112
+ tools: IMachineTool[];
113
+ attributes: IAttributeValue[];
114
+ components: IMachineComponent[];
115
+ resources: ObjectId[];
73
116
  cords: number[];
74
117
  loc: {
75
118
  type: string;
@@ -78,3 +121,4 @@ export interface IMachine extends IDefaultFields {
78
121
  commands: any;
79
122
  commandLinks: any;
80
123
  }
124
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2024.2.13",
3
+ "version": "2024.2.15",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",