@memberjunction/core-actions 5.8.0 → 5.9.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.
- package/dist/config.d.ts +62 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +17 -0
- package/dist/config.js.map +1 -1
- package/dist/custom/utilities/address-services.action.d.ts +80 -0
- package/dist/custom/utilities/address-services.action.d.ts.map +1 -0
- package/dist/custom/utilities/address-services.action.js +355 -0
- package/dist/custom/utilities/address-services.action.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +25 -25
package/dist/config.d.ts
CHANGED
|
@@ -43,16 +43,38 @@ declare const apiIntegrationsSchema: z.ZodObject<{
|
|
|
43
43
|
apiKey?: string;
|
|
44
44
|
cx?: string;
|
|
45
45
|
}>>;
|
|
46
|
+
/**
|
|
47
|
+
* Google Geocoding and Address Validation configuration
|
|
48
|
+
* Used by: Postal Code Lookup, Geocode Address, Reverse Geocode, Validate Address actions
|
|
49
|
+
* Get your API key from: https://console.cloud.google.com/apis/credentials
|
|
50
|
+
* Enable: Geocoding API and Address Validation API
|
|
51
|
+
*/
|
|
52
|
+
geocoding: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
/**
|
|
54
|
+
* Google Maps/Geocoding API key
|
|
55
|
+
*/
|
|
56
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
apiKey?: string;
|
|
59
|
+
}, {
|
|
60
|
+
apiKey?: string;
|
|
61
|
+
}>>;
|
|
46
62
|
}, "strip", z.ZodTypeAny, {
|
|
47
63
|
customSearch?: {
|
|
48
64
|
apiKey?: string;
|
|
49
65
|
cx?: string;
|
|
50
66
|
};
|
|
67
|
+
geocoding?: {
|
|
68
|
+
apiKey?: string;
|
|
69
|
+
};
|
|
51
70
|
}, {
|
|
52
71
|
customSearch?: {
|
|
53
72
|
apiKey?: string;
|
|
54
73
|
cx?: string;
|
|
55
74
|
};
|
|
75
|
+
geocoding?: {
|
|
76
|
+
apiKey?: string;
|
|
77
|
+
};
|
|
56
78
|
}>>;
|
|
57
79
|
}, "strip", z.ZodTypeAny, {
|
|
58
80
|
perplexityApiKey?: string;
|
|
@@ -62,6 +84,9 @@ declare const apiIntegrationsSchema: z.ZodObject<{
|
|
|
62
84
|
apiKey?: string;
|
|
63
85
|
cx?: string;
|
|
64
86
|
};
|
|
87
|
+
geocoding?: {
|
|
88
|
+
apiKey?: string;
|
|
89
|
+
};
|
|
65
90
|
};
|
|
66
91
|
}, {
|
|
67
92
|
perplexityApiKey?: string;
|
|
@@ -71,6 +96,9 @@ declare const apiIntegrationsSchema: z.ZodObject<{
|
|
|
71
96
|
apiKey?: string;
|
|
72
97
|
cx?: string;
|
|
73
98
|
};
|
|
99
|
+
geocoding?: {
|
|
100
|
+
apiKey?: string;
|
|
101
|
+
};
|
|
74
102
|
};
|
|
75
103
|
}>;
|
|
76
104
|
/**
|
|
@@ -121,16 +149,38 @@ declare const coreActionsConfigSchema: z.ZodObject<{
|
|
|
121
149
|
apiKey?: string;
|
|
122
150
|
cx?: string;
|
|
123
151
|
}>>;
|
|
152
|
+
/**
|
|
153
|
+
* Google Geocoding and Address Validation configuration
|
|
154
|
+
* Used by: Postal Code Lookup, Geocode Address, Reverse Geocode, Validate Address actions
|
|
155
|
+
* Get your API key from: https://console.cloud.google.com/apis/credentials
|
|
156
|
+
* Enable: Geocoding API and Address Validation API
|
|
157
|
+
*/
|
|
158
|
+
geocoding: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
/**
|
|
160
|
+
* Google Maps/Geocoding API key
|
|
161
|
+
*/
|
|
162
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
apiKey?: string;
|
|
165
|
+
}, {
|
|
166
|
+
apiKey?: string;
|
|
167
|
+
}>>;
|
|
124
168
|
}, "strip", z.ZodTypeAny, {
|
|
125
169
|
customSearch?: {
|
|
126
170
|
apiKey?: string;
|
|
127
171
|
cx?: string;
|
|
128
172
|
};
|
|
173
|
+
geocoding?: {
|
|
174
|
+
apiKey?: string;
|
|
175
|
+
};
|
|
129
176
|
}, {
|
|
130
177
|
customSearch?: {
|
|
131
178
|
apiKey?: string;
|
|
132
179
|
cx?: string;
|
|
133
180
|
};
|
|
181
|
+
geocoding?: {
|
|
182
|
+
apiKey?: string;
|
|
183
|
+
};
|
|
134
184
|
}>>;
|
|
135
185
|
}, "strip", z.ZodTypeAny, {
|
|
136
186
|
perplexityApiKey?: string;
|
|
@@ -140,6 +190,9 @@ declare const coreActionsConfigSchema: z.ZodObject<{
|
|
|
140
190
|
apiKey?: string;
|
|
141
191
|
cx?: string;
|
|
142
192
|
};
|
|
193
|
+
geocoding?: {
|
|
194
|
+
apiKey?: string;
|
|
195
|
+
};
|
|
143
196
|
};
|
|
144
197
|
}, {
|
|
145
198
|
perplexityApiKey?: string;
|
|
@@ -149,6 +202,9 @@ declare const coreActionsConfigSchema: z.ZodObject<{
|
|
|
149
202
|
apiKey?: string;
|
|
150
203
|
cx?: string;
|
|
151
204
|
};
|
|
205
|
+
geocoding?: {
|
|
206
|
+
apiKey?: string;
|
|
207
|
+
};
|
|
152
208
|
};
|
|
153
209
|
}>>>;
|
|
154
210
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -160,6 +216,9 @@ declare const coreActionsConfigSchema: z.ZodObject<{
|
|
|
160
216
|
apiKey?: string;
|
|
161
217
|
cx?: string;
|
|
162
218
|
};
|
|
219
|
+
geocoding?: {
|
|
220
|
+
apiKey?: string;
|
|
221
|
+
};
|
|
163
222
|
};
|
|
164
223
|
};
|
|
165
224
|
}, {
|
|
@@ -171,6 +230,9 @@ declare const coreActionsConfigSchema: z.ZodObject<{
|
|
|
171
230
|
apiKey?: string;
|
|
172
231
|
cx?: string;
|
|
173
232
|
};
|
|
233
|
+
geocoding?: {
|
|
234
|
+
apiKey?: string;
|
|
235
|
+
};
|
|
174
236
|
};
|
|
175
237
|
};
|
|
176
238
|
}>;
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,QAAA,MAAM,qBAAqB;IACzB;;;;OAIG;;IAGH;;;;;OAKG;;IAGH;;;OAGG;;QAED;;;;;WAKG;;YAED;;eAEG;;YAEH;;eAEG
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,QAAA,MAAM,qBAAqB;IACzB;;;;OAIG;;IAGH;;;;;OAKG;;IAGH;;;OAGG;;QAED;;;;;WAKG;;YAED;;eAEG;;YAEH;;eAEG;;;;;;;;;QAIL;;;;;WAKG;;YAED;;eAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIP,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,uBAAuB;IAC3B;;OAEG;;QA1DH;;;;WAIG;;QAGH;;;;;WAKG;;QAGH;;;WAGG;;YAED;;;;;eAKG;;gBAED;;mBAEG;;gBAEH;;mBAEG;;;;;;;;;YAIL;;;;;eAKG;;gBAED;;mBAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcP,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAI1E;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,iBAAiB,CA0CxD;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,qBAAqB,CAGhE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C"}
|
package/dist/config.js
CHANGED
|
@@ -40,6 +40,18 @@ const apiIntegrationsSchema = z.object({
|
|
|
40
40
|
*/
|
|
41
41
|
cx: z.string().optional(),
|
|
42
42
|
}).optional(),
|
|
43
|
+
/**
|
|
44
|
+
* Google Geocoding and Address Validation configuration
|
|
45
|
+
* Used by: Postal Code Lookup, Geocode Address, Reverse Geocode, Validate Address actions
|
|
46
|
+
* Get your API key from: https://console.cloud.google.com/apis/credentials
|
|
47
|
+
* Enable: Geocoding API and Address Validation API
|
|
48
|
+
*/
|
|
49
|
+
geocoding: z.object({
|
|
50
|
+
/**
|
|
51
|
+
* Google Maps/Geocoding API key
|
|
52
|
+
*/
|
|
53
|
+
apiKey: z.string().optional(),
|
|
54
|
+
}).optional(),
|
|
43
55
|
}).optional(),
|
|
44
56
|
});
|
|
45
57
|
/**
|
|
@@ -81,6 +93,11 @@ export function getCoreActionsConfig() {
|
|
|
81
93
|
result.config?.googleCustomSearchCx || // Backwards compatibility
|
|
82
94
|
process.env.GOOGLE_CUSTOM_SEARCH_CX,
|
|
83
95
|
},
|
|
96
|
+
geocoding: {
|
|
97
|
+
apiKey: result.config?.google?.geocoding?.apiKey ||
|
|
98
|
+
process.env.GOOGLE_GEOCODING_API_KEY ||
|
|
99
|
+
process.env.GOOGLE_MAPS_API_KEY,
|
|
100
|
+
},
|
|
84
101
|
},
|
|
85
102
|
},
|
|
86
103
|
};
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aA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jB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,0CAA0C,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QACvE,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,wBAAwB;IACtC,MAAM,MAAM,GAAG,oBAAoB,EAAE,CAAC;IACtC,OAAO,MAAM,CAAC,eAAe,CAAC;AAChC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,GAAG,IAAI,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ActionResultSimple, RunActionParams } from "@memberjunction/actions-base";
|
|
2
|
+
import { BaseAction } from "@memberjunction/actions";
|
|
3
|
+
/**
|
|
4
|
+
* Looks up city, state, and coordinates from a postal code using
|
|
5
|
+
* the Google Geocoding API.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* await runAction({
|
|
10
|
+
* ActionName: 'Postal Code Lookup',
|
|
11
|
+
* Params: [
|
|
12
|
+
* { Name: 'PostalCode', Value: '70115' },
|
|
13
|
+
* { Name: 'Country', Value: 'US' }
|
|
14
|
+
* ]
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare class PostalCodeLookupAction extends BaseAction {
|
|
19
|
+
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Converts a free-form address string into structured address components
|
|
23
|
+
* and geographic coordinates using the Google Geocoding API.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* await runAction({
|
|
28
|
+
* ActionName: 'Geocode Address',
|
|
29
|
+
* Params: [
|
|
30
|
+
* { Name: 'Address', Value: '1600 Amphitheatre Parkway, Mountain View, CA' }
|
|
31
|
+
* ]
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare class GeocodeAddressAction extends BaseAction {
|
|
36
|
+
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Converts geographic coordinates (latitude/longitude) into a structured
|
|
40
|
+
* address using the Google Geocoding API.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```typescript
|
|
44
|
+
* await runAction({
|
|
45
|
+
* ActionName: 'Reverse Geocode',
|
|
46
|
+
* Params: [
|
|
47
|
+
* { Name: 'Latitude', Value: 37.4224764 },
|
|
48
|
+
* { Name: 'Longitude', Value: -122.0842499 }
|
|
49
|
+
* ]
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare class ReverseGeocodeAction extends BaseAction {
|
|
54
|
+
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Validates and standardizes an address using the Google Address Validation API.
|
|
58
|
+
* Returns corrected address fields, deliverability verdict, and USPS data for
|
|
59
|
+
* US addresses.
|
|
60
|
+
*
|
|
61
|
+
* Requires the Address Validation API to be enabled in your Google Cloud project.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* await runAction({
|
|
66
|
+
* ActionName: 'Validate Address',
|
|
67
|
+
* Params: [
|
|
68
|
+
* { Name: 'Line1', Value: '1600 Amphitheatre Pkwy' },
|
|
69
|
+
* { Name: 'City', Value: 'Mountain View' },
|
|
70
|
+
* { Name: 'State', Value: 'CA' },
|
|
71
|
+
* { Name: 'PostalCode', Value: '94043' },
|
|
72
|
+
* { Name: 'Country', Value: 'US' }
|
|
73
|
+
* ]
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare class ValidateAddressAction extends BaseAction {
|
|
78
|
+
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=address-services.action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address-services.action.d.ts","sourceRoot":"","sources":["../../../src/custom/utilities/address-services.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAiIrD;;;;;;;;;;;;;;GAcG;AACH,qBACa,sBAAuB,SAAQ,UAAU;cAClC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA8D1F;AAMD;;;;;;;;;;;;;GAaG;AACH,qBACa,oBAAqB,SAAQ,UAAU;cAChC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAqD1F;AAMD;;;;;;;;;;;;;;GAcG;AACH,qBACa,oBAAqB,SAAQ,UAAU;cAChC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CA2D1F;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBACa,qBAAsB,SAAQ,UAAU;cACjC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAwG1F"}
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { BaseAction } from "@memberjunction/actions";
|
|
8
|
+
import { RegisterClass } from "@memberjunction/global";
|
|
9
|
+
import axios from "axios";
|
|
10
|
+
import { getApiIntegrationsConfig } from "../../config.js";
|
|
11
|
+
// ---------------------------------------------------------------------------
|
|
12
|
+
// Helper: extract structured address from Google Geocoding result
|
|
13
|
+
// ---------------------------------------------------------------------------
|
|
14
|
+
function extractAddress(result) {
|
|
15
|
+
const address = {
|
|
16
|
+
FormattedAddress: result.formatted_address,
|
|
17
|
+
Latitude: result.geometry.location.lat,
|
|
18
|
+
Longitude: result.geometry.location.lng,
|
|
19
|
+
};
|
|
20
|
+
for (const component of result.address_components) {
|
|
21
|
+
const types = component.types;
|
|
22
|
+
if (types.includes('street_number')) {
|
|
23
|
+
address.Line1 = component.long_name;
|
|
24
|
+
}
|
|
25
|
+
else if (types.includes('route')) {
|
|
26
|
+
address.Line1 = address.Line1
|
|
27
|
+
? `${address.Line1} ${component.long_name}`
|
|
28
|
+
: component.long_name;
|
|
29
|
+
}
|
|
30
|
+
else if (types.includes('subpremise')) {
|
|
31
|
+
address.Line2 = component.long_name;
|
|
32
|
+
}
|
|
33
|
+
else if (types.includes('locality')) {
|
|
34
|
+
address.City = component.long_name;
|
|
35
|
+
}
|
|
36
|
+
else if (types.includes('administrative_area_level_1')) {
|
|
37
|
+
address.State = component.short_name;
|
|
38
|
+
}
|
|
39
|
+
else if (types.includes('postal_code')) {
|
|
40
|
+
address.PostalCode = component.long_name;
|
|
41
|
+
}
|
|
42
|
+
else if (types.includes('country')) {
|
|
43
|
+
address.Country = component.long_name;
|
|
44
|
+
address.CountryCode = component.short_name;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return address;
|
|
48
|
+
}
|
|
49
|
+
// ---------------------------------------------------------------------------
|
|
50
|
+
// Helper: get Google API key from config
|
|
51
|
+
// ---------------------------------------------------------------------------
|
|
52
|
+
function getGoogleApiKey() {
|
|
53
|
+
const config = getApiIntegrationsConfig();
|
|
54
|
+
return config.google?.geocoding?.apiKey
|
|
55
|
+
|| process.env.GOOGLE_GEOCODING_API_KEY
|
|
56
|
+
|| process.env.GOOGLE_MAPS_API_KEY;
|
|
57
|
+
}
|
|
58
|
+
// ---------------------------------------------------------------------------
|
|
59
|
+
// 1. Postal Code Lookup
|
|
60
|
+
// ---------------------------------------------------------------------------
|
|
61
|
+
/**
|
|
62
|
+
* Looks up city, state, and coordinates from a postal code using
|
|
63
|
+
* the Google Geocoding API.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* await runAction({
|
|
68
|
+
* ActionName: 'Postal Code Lookup',
|
|
69
|
+
* Params: [
|
|
70
|
+
* { Name: 'PostalCode', Value: '70115' },
|
|
71
|
+
* { Name: 'Country', Value: 'US' }
|
|
72
|
+
* ]
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
let PostalCodeLookupAction = class PostalCodeLookupAction extends BaseAction {
|
|
77
|
+
async InternalRunAction(params) {
|
|
78
|
+
const postalCode = params.Params.find(p => p.Name.toLowerCase() === 'postalcode')?.Value;
|
|
79
|
+
if (!postalCode) {
|
|
80
|
+
return { Success: false, ResultCode: 'MISSING_POSTAL_CODE', Message: 'PostalCode parameter is required' };
|
|
81
|
+
}
|
|
82
|
+
const apiKey = getGoogleApiKey();
|
|
83
|
+
if (!apiKey) {
|
|
84
|
+
return { Success: false, ResultCode: 'MISSING_API_KEY', Message: 'Google Geocoding API key not found. Set google.geocoding.apiKey in mj.config.cjs or GOOGLE_GEOCODING_API_KEY environment variable.' };
|
|
85
|
+
}
|
|
86
|
+
const country = params.Params.find(p => p.Name.toLowerCase() === 'country')?.Value || '';
|
|
87
|
+
try {
|
|
88
|
+
// Use the components parameter to restrict results to the specified country
|
|
89
|
+
const queryParams = { address: postalCode, key: apiKey };
|
|
90
|
+
if (country) {
|
|
91
|
+
queryParams.components = `country:${country}`;
|
|
92
|
+
}
|
|
93
|
+
const response = await axios.get('https://maps.googleapis.com/maps/api/geocode/json', { params: queryParams, timeout: 10000 });
|
|
94
|
+
if (response.data.status !== 'OK' || !response.data.results.length) {
|
|
95
|
+
return {
|
|
96
|
+
Success: false,
|
|
97
|
+
ResultCode: 'NOT_FOUND',
|
|
98
|
+
Message: `No results found for postal code "${postalCode}". Google status: ${response.data.status}`
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
const address = extractAddress(response.data.results[0]);
|
|
102
|
+
// Update the Country param in-place (it's type Both)
|
|
103
|
+
const countryParam = params.Params.find(p => p.Name.toLowerCase() === 'country');
|
|
104
|
+
if (countryParam) {
|
|
105
|
+
countryParam.Value = address.Country || '';
|
|
106
|
+
}
|
|
107
|
+
params.Params.push({ Name: 'City', Value: address.City || '', Type: 'Output' }, { Name: 'State', Value: address.State || '', Type: 'Output' }, { Name: 'CountryCode', Value: address.CountryCode || '', Type: 'Output' }, { Name: 'Latitude', Value: address.Latitude, Type: 'Output' }, { Name: 'Longitude', Value: address.Longitude, Type: 'Output' });
|
|
108
|
+
return {
|
|
109
|
+
Success: true,
|
|
110
|
+
ResultCode: 'SUCCESS',
|
|
111
|
+
Message: JSON.stringify(address, null, 2)
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
return {
|
|
116
|
+
Success: false,
|
|
117
|
+
ResultCode: 'API_ERROR',
|
|
118
|
+
Message: `Google Geocoding API error: ${error instanceof Error ? error.message : String(error)}`
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
PostalCodeLookupAction = __decorate([
|
|
124
|
+
RegisterClass(BaseAction, "Postal Code Lookup")
|
|
125
|
+
], PostalCodeLookupAction);
|
|
126
|
+
export { PostalCodeLookupAction };
|
|
127
|
+
// ---------------------------------------------------------------------------
|
|
128
|
+
// 2. Geocode Address
|
|
129
|
+
// ---------------------------------------------------------------------------
|
|
130
|
+
/**
|
|
131
|
+
* Converts a free-form address string into structured address components
|
|
132
|
+
* and geographic coordinates using the Google Geocoding API.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```typescript
|
|
136
|
+
* await runAction({
|
|
137
|
+
* ActionName: 'Geocode Address',
|
|
138
|
+
* Params: [
|
|
139
|
+
* { Name: 'Address', Value: '1600 Amphitheatre Parkway, Mountain View, CA' }
|
|
140
|
+
* ]
|
|
141
|
+
* });
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
let GeocodeAddressAction = class GeocodeAddressAction extends BaseAction {
|
|
145
|
+
async InternalRunAction(params) {
|
|
146
|
+
const address = params.Params.find(p => p.Name.toLowerCase() === 'address')?.Value;
|
|
147
|
+
if (!address) {
|
|
148
|
+
return { Success: false, ResultCode: 'MISSING_ADDRESS', Message: 'Address parameter is required' };
|
|
149
|
+
}
|
|
150
|
+
const apiKey = getGoogleApiKey();
|
|
151
|
+
if (!apiKey) {
|
|
152
|
+
return { Success: false, ResultCode: 'MISSING_API_KEY', Message: 'Google Geocoding API key not found. Set google.geocoding.apiKey in mj.config.cjs or GOOGLE_GEOCODING_API_KEY environment variable.' };
|
|
153
|
+
}
|
|
154
|
+
try {
|
|
155
|
+
const response = await axios.get('https://maps.googleapis.com/maps/api/geocode/json', { params: { address, key: apiKey }, timeout: 10000 });
|
|
156
|
+
if (response.data.status !== 'OK' || !response.data.results.length) {
|
|
157
|
+
return {
|
|
158
|
+
Success: false,
|
|
159
|
+
ResultCode: 'NOT_FOUND',
|
|
160
|
+
Message: `No results found for address "${address}". Google status: ${response.data.status}`
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
const result = extractAddress(response.data.results[0]);
|
|
164
|
+
params.Params.push({ Name: 'Line1', Value: result.Line1 || '', Type: 'Output' }, { Name: 'Line2', Value: result.Line2 || '', Type: 'Output' }, { Name: 'City', Value: result.City || '', Type: 'Output' }, { Name: 'State', Value: result.State || '', Type: 'Output' }, { Name: 'PostalCode', Value: result.PostalCode || '', Type: 'Output' }, { Name: 'Country', Value: result.Country || '', Type: 'Output' }, { Name: 'CountryCode', Value: result.CountryCode || '', Type: 'Output' }, { Name: 'Latitude', Value: result.Latitude, Type: 'Output' }, { Name: 'Longitude', Value: result.Longitude, Type: 'Output' }, { Name: 'FormattedAddress', Value: result.FormattedAddress || '', Type: 'Output' });
|
|
165
|
+
return {
|
|
166
|
+
Success: true,
|
|
167
|
+
ResultCode: 'SUCCESS',
|
|
168
|
+
Message: JSON.stringify(result, null, 2)
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
catch (error) {
|
|
172
|
+
return {
|
|
173
|
+
Success: false,
|
|
174
|
+
ResultCode: 'API_ERROR',
|
|
175
|
+
Message: `Google Geocoding API error: ${error instanceof Error ? error.message : String(error)}`
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
GeocodeAddressAction = __decorate([
|
|
181
|
+
RegisterClass(BaseAction, "Geocode Address")
|
|
182
|
+
], GeocodeAddressAction);
|
|
183
|
+
export { GeocodeAddressAction };
|
|
184
|
+
// ---------------------------------------------------------------------------
|
|
185
|
+
// 3. Reverse Geocode
|
|
186
|
+
// ---------------------------------------------------------------------------
|
|
187
|
+
/**
|
|
188
|
+
* Converts geographic coordinates (latitude/longitude) into a structured
|
|
189
|
+
* address using the Google Geocoding API.
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* ```typescript
|
|
193
|
+
* await runAction({
|
|
194
|
+
* ActionName: 'Reverse Geocode',
|
|
195
|
+
* Params: [
|
|
196
|
+
* { Name: 'Latitude', Value: 37.4224764 },
|
|
197
|
+
* { Name: 'Longitude', Value: -122.0842499 }
|
|
198
|
+
* ]
|
|
199
|
+
* });
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
let ReverseGeocodeAction = class ReverseGeocodeAction extends BaseAction {
|
|
203
|
+
async InternalRunAction(params) {
|
|
204
|
+
const lat = params.Params.find(p => p.Name.toLowerCase() === 'latitude')?.Value;
|
|
205
|
+
const lng = params.Params.find(p => p.Name.toLowerCase() === 'longitude')?.Value;
|
|
206
|
+
if (lat === undefined || lat === null || lng === undefined || lng === null) {
|
|
207
|
+
return { Success: false, ResultCode: 'MISSING_COORDINATES', Message: 'Both Latitude and Longitude parameters are required' };
|
|
208
|
+
}
|
|
209
|
+
const latitude = Number(lat);
|
|
210
|
+
const longitude = Number(lng);
|
|
211
|
+
if (isNaN(latitude) || isNaN(longitude)) {
|
|
212
|
+
return { Success: false, ResultCode: 'INVALID_COORDINATES', Message: 'Latitude and Longitude must be valid numbers' };
|
|
213
|
+
}
|
|
214
|
+
const apiKey = getGoogleApiKey();
|
|
215
|
+
if (!apiKey) {
|
|
216
|
+
return { Success: false, ResultCode: 'MISSING_API_KEY', Message: 'Google Geocoding API key not found. Set google.geocoding.apiKey in mj.config.cjs or GOOGLE_GEOCODING_API_KEY environment variable.' };
|
|
217
|
+
}
|
|
218
|
+
try {
|
|
219
|
+
const response = await axios.get('https://maps.googleapis.com/maps/api/geocode/json', { params: { latlng: `${latitude},${longitude}`, key: apiKey }, timeout: 10000 });
|
|
220
|
+
if (response.data.status !== 'OK' || !response.data.results.length) {
|
|
221
|
+
return {
|
|
222
|
+
Success: false,
|
|
223
|
+
ResultCode: 'NOT_FOUND',
|
|
224
|
+
Message: `No address found for coordinates (${latitude}, ${longitude}). Google status: ${response.data.status}`
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
const result = extractAddress(response.data.results[0]);
|
|
228
|
+
params.Params.push({ Name: 'Line1', Value: result.Line1 || '', Type: 'Output' }, { Name: 'Line2', Value: result.Line2 || '', Type: 'Output' }, { Name: 'City', Value: result.City || '', Type: 'Output' }, { Name: 'State', Value: result.State || '', Type: 'Output' }, { Name: 'PostalCode', Value: result.PostalCode || '', Type: 'Output' }, { Name: 'Country', Value: result.Country || '', Type: 'Output' }, { Name: 'CountryCode', Value: result.CountryCode || '', Type: 'Output' }, { Name: 'FormattedAddress', Value: result.FormattedAddress || '', Type: 'Output' });
|
|
229
|
+
return {
|
|
230
|
+
Success: true,
|
|
231
|
+
ResultCode: 'SUCCESS',
|
|
232
|
+
Message: JSON.stringify(result, null, 2)
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
return {
|
|
237
|
+
Success: false,
|
|
238
|
+
ResultCode: 'API_ERROR',
|
|
239
|
+
Message: `Google Geocoding API error: ${error instanceof Error ? error.message : String(error)}`
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
ReverseGeocodeAction = __decorate([
|
|
245
|
+
RegisterClass(BaseAction, "Reverse Geocode")
|
|
246
|
+
], ReverseGeocodeAction);
|
|
247
|
+
export { ReverseGeocodeAction };
|
|
248
|
+
// ---------------------------------------------------------------------------
|
|
249
|
+
// 4. Validate Address
|
|
250
|
+
// ---------------------------------------------------------------------------
|
|
251
|
+
/**
|
|
252
|
+
* Validates and standardizes an address using the Google Address Validation API.
|
|
253
|
+
* Returns corrected address fields, deliverability verdict, and USPS data for
|
|
254
|
+
* US addresses.
|
|
255
|
+
*
|
|
256
|
+
* Requires the Address Validation API to be enabled in your Google Cloud project.
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* ```typescript
|
|
260
|
+
* await runAction({
|
|
261
|
+
* ActionName: 'Validate Address',
|
|
262
|
+
* Params: [
|
|
263
|
+
* { Name: 'Line1', Value: '1600 Amphitheatre Pkwy' },
|
|
264
|
+
* { Name: 'City', Value: 'Mountain View' },
|
|
265
|
+
* { Name: 'State', Value: 'CA' },
|
|
266
|
+
* { Name: 'PostalCode', Value: '94043' },
|
|
267
|
+
* { Name: 'Country', Value: 'US' }
|
|
268
|
+
* ]
|
|
269
|
+
* });
|
|
270
|
+
* ```
|
|
271
|
+
*/
|
|
272
|
+
let ValidateAddressAction = class ValidateAddressAction extends BaseAction {
|
|
273
|
+
async InternalRunAction(params) {
|
|
274
|
+
const getParam = (name) => params.Params.find(p => p.Name.toLowerCase() === name.toLowerCase())?.Value || '';
|
|
275
|
+
const line1 = getParam('Line1');
|
|
276
|
+
const line2 = getParam('Line2');
|
|
277
|
+
const city = getParam('City');
|
|
278
|
+
const state = getParam('State');
|
|
279
|
+
const postalCode = getParam('PostalCode');
|
|
280
|
+
const country = getParam('Country') || 'US';
|
|
281
|
+
if (!line1 && !city && !postalCode) {
|
|
282
|
+
return { Success: false, ResultCode: 'MISSING_ADDRESS', Message: 'At least one of Line1, City, or PostalCode is required' };
|
|
283
|
+
}
|
|
284
|
+
const apiKey = getGoogleApiKey();
|
|
285
|
+
if (!apiKey) {
|
|
286
|
+
return { Success: false, ResultCode: 'MISSING_API_KEY', Message: 'Google Geocoding API key not found. Set google.geocoding.apiKey in mj.config.cjs or GOOGLE_GEOCODING_API_KEY environment variable.' };
|
|
287
|
+
}
|
|
288
|
+
const addressLines = [];
|
|
289
|
+
if (line1)
|
|
290
|
+
addressLines.push(line1);
|
|
291
|
+
if (line2)
|
|
292
|
+
addressLines.push(line2);
|
|
293
|
+
const requestBody = {
|
|
294
|
+
address: {
|
|
295
|
+
regionCode: country.length === 2 ? country.toUpperCase() : undefined,
|
|
296
|
+
locality: city || undefined,
|
|
297
|
+
administrativeArea: state || undefined,
|
|
298
|
+
postalCode: postalCode || undefined,
|
|
299
|
+
addressLines: addressLines.length > 0 ? addressLines : undefined,
|
|
300
|
+
},
|
|
301
|
+
enableUspsCass: country.toUpperCase() === 'US',
|
|
302
|
+
};
|
|
303
|
+
try {
|
|
304
|
+
const response = await axios.post(`https://addressvalidation.googleapis.com/v1:validateAddress?key=${apiKey}`, requestBody, { timeout: 10000 });
|
|
305
|
+
const result = response.data.result;
|
|
306
|
+
if (!result) {
|
|
307
|
+
return { Success: false, ResultCode: 'EMPTY_RESPONSE', Message: 'Empty response from Google Address Validation API' };
|
|
308
|
+
}
|
|
309
|
+
const postal = result.address.postalAddress;
|
|
310
|
+
const geo = result.geocode?.location;
|
|
311
|
+
const verdict = result.verdict;
|
|
312
|
+
const validationResult = {
|
|
313
|
+
CorrectedLine1: postal.addressLines?.[0] || '',
|
|
314
|
+
CorrectedLine2: postal.addressLines?.[1] || '',
|
|
315
|
+
CorrectedCity: postal.locality || '',
|
|
316
|
+
CorrectedState: postal.administrativeArea || '',
|
|
317
|
+
CorrectedPostalCode: postal.postalCode || '',
|
|
318
|
+
CorrectedCountry: postal.regionCode || '',
|
|
319
|
+
FormattedAddress: result.address.formattedAddress || '',
|
|
320
|
+
Latitude: geo?.latitude,
|
|
321
|
+
Longitude: geo?.longitude,
|
|
322
|
+
IsComplete: verdict.addressComplete,
|
|
323
|
+
HasUnconfirmedComponents: verdict.hasUnconfirmedComponents,
|
|
324
|
+
ValidationGranularity: verdict.validationGranularity,
|
|
325
|
+
Deliverable: verdict.validationGranularity === 'PREMISE' || verdict.validationGranularity === 'SUB_PREMISE',
|
|
326
|
+
DPVConfirmation: result.uspsData?.dpvConfirmation || '',
|
|
327
|
+
};
|
|
328
|
+
params.Params.push({ Name: 'CorrectedLine1', Value: validationResult.CorrectedLine1, Type: 'Output' }, { Name: 'CorrectedLine2', Value: validationResult.CorrectedLine2, Type: 'Output' }, { Name: 'CorrectedCity', Value: validationResult.CorrectedCity, Type: 'Output' }, { Name: 'CorrectedState', Value: validationResult.CorrectedState, Type: 'Output' }, { Name: 'CorrectedPostalCode', Value: validationResult.CorrectedPostalCode, Type: 'Output' }, { Name: 'CorrectedCountry', Value: validationResult.CorrectedCountry, Type: 'Output' }, { Name: 'FormattedAddress', Value: validationResult.FormattedAddress, Type: 'Output' }, { Name: 'Latitude', Value: validationResult.Latitude, Type: 'Output' }, { Name: 'Longitude', Value: validationResult.Longitude, Type: 'Output' }, { Name: 'IsComplete', Value: validationResult.IsComplete, Type: 'Output' }, { Name: 'Deliverable', Value: validationResult.Deliverable, Type: 'Output' }, { Name: 'ValidationGranularity', Value: validationResult.ValidationGranularity, Type: 'Output' }, { Name: 'DPVConfirmation', Value: validationResult.DPVConfirmation, Type: 'Output' });
|
|
329
|
+
return {
|
|
330
|
+
Success: true,
|
|
331
|
+
ResultCode: validationResult.Deliverable ? 'DELIVERABLE' : 'UNDELIVERABLE',
|
|
332
|
+
Message: JSON.stringify(validationResult, null, 2)
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
catch (error) {
|
|
336
|
+
if (axios.isAxiosError(error) && error.response?.status === 403) {
|
|
337
|
+
return {
|
|
338
|
+
Success: false,
|
|
339
|
+
ResultCode: 'API_NOT_ENABLED',
|
|
340
|
+
Message: 'Google Address Validation API is not enabled or credentials are invalid. Enable it at https://console.cloud.google.com/apis/library/addressvalidation.googleapis.com'
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
return {
|
|
344
|
+
Success: false,
|
|
345
|
+
ResultCode: 'API_ERROR',
|
|
346
|
+
Message: `Google Address Validation API error: ${error instanceof Error ? error.message : String(error)}`
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
ValidateAddressAction = __decorate([
|
|
352
|
+
RegisterClass(BaseAction, "Validate Address")
|
|
353
|
+
], ValidateAddressAction);
|
|
354
|
+
export { ValidateAddressAction };
|
|
355
|
+
//# sourceMappingURL=address-services.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address-services.action.js","sourceRoot":"","sources":["../../../src/custom/utilities/address-services.action.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AA2ExD,8EAA8E;AAC9E,kEAAkE;AAClE,8EAA8E;AAE9E,SAAS,cAAc,CAAC,MAA2C;IAC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yGjC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './custom/utilities/ip-geolocation.action.js';
|
|
|
18
18
|
export * from './custom/utilities/census-data-lookup.action.js';
|
|
19
19
|
export * from './custom/utilities/external-change-detection.action.js';
|
|
20
20
|
export * from './custom/utilities/qr-code.action.js';
|
|
21
|
+
export * from './custom/utilities/address-services.action.js';
|
|
21
22
|
export * from './custom/web/web-search.action.js';
|
|
22
23
|
export * from './custom/web/web-page-content.action.js';
|
|
23
24
|
export * from './custom/web/url-link-validator.action.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AAGjD,cAAc,mDAAmD,CAAC;AAClE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAG5D,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AAGnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oDAAoD,CAAC;AACnE,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qDAAqD,CAAC;AACpE,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAG3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cA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AAC;AACpE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,yDAAyD,CAAC;AACxE,cAAc,sDAAsD,CAAC;AACrE,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAG5D,cAAc,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ export * from './custom/utilities/ip-geolocation.action.js';
|
|
|
22
22
|
export * from './custom/utilities/census-data-lookup.action.js';
|
|
23
23
|
export * from './custom/utilities/external-change-detection.action.js';
|
|
24
24
|
export * from './custom/utilities/qr-code.action.js';
|
|
25
|
+
export * from './custom/utilities/address-services.action.js';
|
|
25
26
|
// Web Actions
|
|
26
27
|
export * from './custom/web/web-search.action.js';
|
|
27
28
|
export * from './custom/web/web-page-content.action.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AAEjD,wBAAwB;AACxB,cAAc,mDAAmD,CAAC;AAClE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAE5D,eAAe;AACf,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AAEnD,eAAe;AACf,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AAEpD,kBAAkB;AAClB,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oDAAoD,C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,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAElD,0BAA0B;AAC1B,cAAc,uDAAuD,CAAC;AACtE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,uDAAuD,CAAC;AAEtE,0BAA0B;AAC1B,cAAc,gBAAgB,CAAC;AAE/B,wBAAwB;AACxB,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,yDAAyD,CAAC;AACxE,cAAc,sDAAsD,CAAC;AACrE,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAE5D,cAAc;AACd,cAAc,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/core-actions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.9.0",
|
|
5
5
|
"description": "Library of generated and custom actions for the core MemberJunction framework. This library is maintained by MemberJunction and includes actions for use within the framework itself.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -24,30 +24,30 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@asamuzakjp/css-color": "^4.1.2",
|
|
26
26
|
"@dagrejs/dagre": "^1.1.8",
|
|
27
|
-
"@memberjunction/actions": "5.
|
|
28
|
-
"@memberjunction/actions-base": "5.
|
|
29
|
-
"@memberjunction/ai": "5.
|
|
30
|
-
"@memberjunction/ai-mcp-client": "5.
|
|
31
|
-
"@memberjunction/ai-agent-manager": "5.
|
|
32
|
-
"@memberjunction/ai-agents": "5.
|
|
33
|
-
"@memberjunction/ai-betty-bot": "5.
|
|
34
|
-
"@memberjunction/ai-core-plus": "5.
|
|
35
|
-
"@memberjunction/ai-engine-base": "5.
|
|
36
|
-
"@memberjunction/ai-prompts": "5.
|
|
37
|
-
"@memberjunction/ai-vector-sync": "5.
|
|
38
|
-
"@memberjunction/aiengine": "5.
|
|
39
|
-
"@memberjunction/code-execution": "5.
|
|
40
|
-
"@memberjunction/communication-engine": "5.
|
|
41
|
-
"@memberjunction/communication-types": "5.
|
|
42
|
-
"@memberjunction/content-autotagging": "5.
|
|
43
|
-
"@memberjunction/core": "5.
|
|
44
|
-
"@memberjunction/core-entities": "5.
|
|
45
|
-
"@memberjunction/core-entities-server": "5.
|
|
46
|
-
"@memberjunction/export-engine": "5.
|
|
47
|
-
"@memberjunction/external-change-detection": "5.
|
|
48
|
-
"@memberjunction/global": "5.
|
|
49
|
-
"@memberjunction/sqlserver-dataprovider": "5.
|
|
50
|
-
"@memberjunction/storage": "5.
|
|
27
|
+
"@memberjunction/actions": "5.9.0",
|
|
28
|
+
"@memberjunction/actions-base": "5.9.0",
|
|
29
|
+
"@memberjunction/ai": "5.9.0",
|
|
30
|
+
"@memberjunction/ai-mcp-client": "5.9.0",
|
|
31
|
+
"@memberjunction/ai-agent-manager": "5.9.0",
|
|
32
|
+
"@memberjunction/ai-agents": "5.9.0",
|
|
33
|
+
"@memberjunction/ai-betty-bot": "5.9.0",
|
|
34
|
+
"@memberjunction/ai-core-plus": "5.9.0",
|
|
35
|
+
"@memberjunction/ai-engine-base": "5.9.0",
|
|
36
|
+
"@memberjunction/ai-prompts": "5.9.0",
|
|
37
|
+
"@memberjunction/ai-vector-sync": "5.9.0",
|
|
38
|
+
"@memberjunction/aiengine": "5.9.0",
|
|
39
|
+
"@memberjunction/code-execution": "5.9.0",
|
|
40
|
+
"@memberjunction/communication-engine": "5.9.0",
|
|
41
|
+
"@memberjunction/communication-types": "5.9.0",
|
|
42
|
+
"@memberjunction/content-autotagging": "5.9.0",
|
|
43
|
+
"@memberjunction/core": "5.9.0",
|
|
44
|
+
"@memberjunction/core-entities": "5.9.0",
|
|
45
|
+
"@memberjunction/core-entities-server": "5.9.0",
|
|
46
|
+
"@memberjunction/export-engine": "5.9.0",
|
|
47
|
+
"@memberjunction/external-change-detection": "5.9.0",
|
|
48
|
+
"@memberjunction/global": "5.9.0",
|
|
49
|
+
"@memberjunction/sqlserver-dataprovider": "5.9.0",
|
|
50
|
+
"@memberjunction/storage": "5.9.0",
|
|
51
51
|
"@types/d3-cloud": "^1.2.9",
|
|
52
52
|
"@types/d3-force": "^3.0.10",
|
|
53
53
|
"@types/d3-hierarchy": "^3.1.7",
|