@hitc/netsuite-types 2025.2.2 → 2025.2.3

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.
@@ -0,0 +1,151 @@
1
+ import type {EntryPoints} from '../types'
2
+ import type {Form} from '../ui/serverWidget'
3
+
4
+ /** Taken from https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_0724075122.html */
5
+ interface epForm {
6
+ /** Adds a column on the sublist of the Invoice Payment Processing page to display field values from the records searched */
7
+ AddColumn(
8
+ /**
9
+ * The field type of the column
10
+ */
11
+ type: ColumnType,
12
+ /**
13
+ * The name of the column displayed on the sublist of the Invoice Payment Processing page.
14
+ */
15
+ name: string,
16
+ /**
17
+ * The internal ID name of the column you want to add on the sublist.
18
+ * The reference argument can be a standard or custom entity field.
19
+ * The reference argument can also be a standard or custom transaction field.
20
+ */
21
+ reference: string,
22
+ /**
23
+ * If value is true, the column displays the text or readable value of the field.
24
+ * If the value is false, the column displays the id of the field value.
25
+ */
26
+ isText?: boolean,
27
+ /**
28
+ * The display type of the column added to the sublist on the Invoice Payment Processing page.
29
+ */
30
+ displayType?: ColumnDisplayType,
31
+ /**
32
+ * The default value of the column that is displayed on the sublist automatically when the Invoice Payment Processing page loads.
33
+ */
34
+ defaultValue?: string,
35
+ /**
36
+ * The join id for the search return column.
37
+ */
38
+ join?: string
39
+ ): void;
40
+ /** Adds a filter on the Bill Payment Processing page. The filter refines the search of bills to be processed */
41
+ AddFilter(
42
+ /**
43
+ * If value is true, the filter is added to the existing Search Filters group on the Bill Payment Processing page.
44
+ * If value is false, a new group of filters, named Custom Transaction Filters, is added to the Bill Payment Processing page.
45
+ */
46
+ isDefaultFilter: boolean,
47
+ /**
48
+ * The internal ID name of the field you want to add as a filter.
49
+ * Note that you can only add fields from the transaction record.
50
+ * If you want to source a newly created transaction body field or transaction column field, the reference argument must be the id of the newly created field.
51
+ */
52
+ reference: string,
53
+ /**
54
+ * The field type of the filter
55
+ */
56
+ type: FilterType,
57
+ /**
58
+ * The label of the filter displayed on the Bill Payment Processing page.
59
+ */
60
+ label: string,
61
+ /**
62
+ * The display type of the filter on the Bill Payment Processing page.
63
+ */
64
+ displayType?: FilterDisplayType,
65
+ /**
66
+ * The default value of the filter that is displayed automatically when the Bill Payment Processing page loads
67
+ */
68
+ defaultValue?: string,
69
+ /**
70
+ * The text displayed when the filter label is clicked.
71
+ * The helpText value describes the data searched for when the filter is used
72
+ */
73
+ helpText?: string,
74
+ /**
75
+ * Specifies the source where the filter gets its autopopulated values.
76
+ * An example value is the internal id of a list or record.
77
+ * Note that source must have a value if the type argument is select or multiselect, for the values of the filter to be displayed.
78
+ */
79
+ source?: string,
80
+ /**
81
+ * A whole number that defines the allowed length of the value entered on the filter.
82
+ */
83
+ maxLength?: number
84
+ ): void;
85
+ /** Builds the customized Invoice Payment Processing page. This method must be called after all changes are made. */
86
+ BuildUI(context: EntryPoints.Suitelet.onRequestContext): void;
87
+ /** Get the form and generate it. */
88
+ GetForm(): Form;
89
+ /**
90
+ * Removes an existing (default) field from the Payment Information group of the Invoice Payment Processing page.
91
+ * Some fields cannot be removed, see https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4024135775.html for details.
92
+ */
93
+ RemoveField(
94
+ /** The field ID of the existing field that you want to remove */
95
+ fieldId: string
96
+ ): void;
97
+ /**
98
+ * Removes an existing (default) filter from the “Search Filter” group of the Invoice Payment Processing page.
99
+ * Some filters cannot be removed, see https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_0724030613.html for details.
100
+ */
101
+ RemoveFilter(
102
+ /** The field ID from the “Search Filter” group of the Invoice Payment Processing page that you want to remove */
103
+ fieldId: string
104
+ ): void;
105
+ /** Use the setPaymentType method to setup the payment type */
106
+ setPaymentType(type: PaymentType): void;
107
+ /** Use setGlobalPayment to setup the global payments Suitelet */
108
+ setGlobalPayment(isGlobal: boolean): void;
109
+ }
110
+
111
+ export enum ColumnType {
112
+ TEXT = 'text',
113
+ INTEGER = 'integer',
114
+ DATE = 'date',
115
+ CURRENCY = 'currency',
116
+ }
117
+
118
+ export enum ColumnDisplayType {
119
+ NORMAL = 'normal',
120
+ HIDDEN = 'hidden',
121
+ }
122
+
123
+ export enum FilterType {
124
+ TEXT = 'text',
125
+ DATE = 'date',
126
+ CHECKBOX = 'checkbox',
127
+ SELECT = 'select',
128
+ MULTISELECT = 'multiselect',
129
+ INTEGER = 'integer',
130
+ CURRENCY = 'currency',
131
+ LONGTEXT = 'longtext',
132
+ }
133
+
134
+ export enum FilterDisplayType {
135
+ INLINE = 'inline',
136
+ NORMAL = 'normal',
137
+ HIDDEN = 'hidden',
138
+ DISABLED = 'disabled',
139
+ }
140
+
141
+ export enum PaymentType {
142
+ DD = 'DD',
143
+ EFT = 'EFT',
144
+ CR = 'CR',
145
+ PP = 'PP',
146
+ }
147
+
148
+ export interface epPlugin extends Record<string, (...s: unknown[]) => unknown> {
149
+ /** Returns an epForm object to customize the Invoice Payment Processing page */
150
+ getEPForm: () => epForm;
151
+ }
package/N/runtime.d.ts CHANGED
@@ -357,6 +357,7 @@ export type NetSuiteFeature =
357
357
  | "URLCOMPONENTALIASES"
358
358
  | "USR"
359
359
  | "VENDORACCESS"
360
+ | "VENDOR_PAYMENT_INSTRUMENT"
360
361
  | "VENDORPREPAYMENTS"
361
362
  | "VENDORRETURNAUTHS"
362
363
  | "WARRANTYANDREPAIRSMANAGEMENT"
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "posttest": "npm run cleanup"
9
9
  },
10
10
  "homepage": "https://github.com/headintheclouddev/typings-suitescript-2.0",
11
- "version": "2025.2.2",
11
+ "version": "2025.2.3",
12
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
13
13
  "license": "MIT",
14
14
  "repository": {