@mj-biz-apps/sales-server 5.1.0 → 6.0.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/LICENSE +183 -183
- package/dist/custom/forecast-snapshot.action.d.ts +2 -3
- package/dist/custom/forecast-snapshot.action.d.ts.map +1 -1
- package/dist/custom/forecast-snapshot.action.js +2 -3
- package/dist/custom/forecast-snapshot.action.js.map +1 -1
- package/dist/custom/log-activity.action.d.ts +1 -1
- package/dist/custom/log-activity.action.d.ts.map +1 -1
- package/dist/custom/log-activity.action.js +1 -1
- package/dist/custom/log-activity.action.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -9
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/custom/sync-activities.action.d.ts +0 -37
- package/dist/custom/sync-activities.action.d.ts.map +0 -1
- package/dist/custom/sync-activities.action.js +0 -124
- package/dist/custom/sync-activities.action.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,183 +1,183 @@
|
|
|
1
|
-
Business Source License 1.1
|
|
2
|
-
|
|
3
|
-
License text copyright (c) 2024 MariaDB plc, All Rights Reserved.
|
|
4
|
-
"Business Source License" is a trademark of MariaDB plc.
|
|
5
|
-
|
|
6
|
-
-----------------------------------------------------------------------------
|
|
7
|
-
|
|
8
|
-
Parameters
|
|
9
|
-
|
|
10
|
-
Licensor: Blue Cypress, Inc.
|
|
11
|
-
|
|
12
|
-
Licensed Work: MemberJunction.
|
|
13
|
-
The Licensed Work is (c) 2023-2026 Blue Cypress, Inc.
|
|
14
|
-
|
|
15
|
-
Additional Use Grant: Subject to the terms of this License, Licensor grants
|
|
16
|
-
you the following additional rights to make Production
|
|
17
|
-
Use of the Licensed Work.
|
|
18
|
-
|
|
19
|
-
1. Internal Use
|
|
20
|
-
|
|
21
|
-
You may make production use of the Licensed Work for
|
|
22
|
-
your own internal business or organizational operations.
|
|
23
|
-
|
|
24
|
-
2. Nonprofit Use
|
|
25
|
-
|
|
26
|
-
If you are a Nonprofit, you may make production use of
|
|
27
|
-
the Licensed Work for the operations and activities of
|
|
28
|
-
your Organizational Family.
|
|
29
|
-
|
|
30
|
-
3. MemberJunction Certified Program Use
|
|
31
|
-
|
|
32
|
-
If you are authorized by Licensor under the
|
|
33
|
-
MemberJunction Certified Program to provide professional
|
|
34
|
-
services using the Licensed Work, you may make
|
|
35
|
-
production use of the Licensed Work in providing such
|
|
36
|
-
professional services to a client, provided that:
|
|
37
|
-
|
|
38
|
-
(a) the Licensed Work is deployed in, and the applicable
|
|
39
|
-
production use occurs within, an environment owned,
|
|
40
|
-
leased, licensed, subscribed to, or otherwise controlled
|
|
41
|
-
by that client; and
|
|
42
|
-
|
|
43
|
-
(b) the production use is for that client's own internal
|
|
44
|
-
business or organizational operations or is otherwise
|
|
45
|
-
independently permitted to that client under this
|
|
46
|
-
Additional Use Grant.
|
|
47
|
-
|
|
48
|
-
4. Definitions Applicable to the Additional Use Grant
|
|
49
|
-
|
|
50
|
-
"Affiliate" means, with respect to a specified Person,
|
|
51
|
-
any other Person that directly or indirectly Controls,
|
|
52
|
-
is Controlled by, or is under common Control with such
|
|
53
|
-
specified Person.
|
|
54
|
-
|
|
55
|
-
"Control" (including the terms "Controls," "Controlled
|
|
56
|
-
by," and "under common Control with") means the direct
|
|
57
|
-
or indirect possession of the power to direct or cause
|
|
58
|
-
the direction of the management and policies of a
|
|
59
|
-
Person, whether through ownership of voting interests,
|
|
60
|
-
by contract, or otherwise.
|
|
61
|
-
|
|
62
|
-
"Organizational Family" means, with respect to a Person,
|
|
63
|
-
(a) such Person and its Affiliates, and (b) any
|
|
64
|
-
nonprofit organization, governmental entity, chapter,
|
|
65
|
-
division, local affiliate, regional affiliate, state
|
|
66
|
-
affiliate, national affiliate, or other entity that is
|
|
67
|
-
formally affiliated with such Person through governing
|
|
68
|
-
documents, a charter, bylaws, a membership agreement, or
|
|
69
|
-
another written organizational instrument, and is
|
|
70
|
-
recognized under such documents as part of the same
|
|
71
|
-
organizational structure.
|
|
72
|
-
|
|
73
|
-
"Nonprofit" means a Person recognized by the Internal
|
|
74
|
-
Revenue Service as exempt from federal income taxation
|
|
75
|
-
under Section 501(c)(3), 501(c)(4), 501(c)(5), or
|
|
76
|
-
501(c)(6) of the Internal Revenue Code, or a foreign
|
|
77
|
-
organization recognized under substantially equivalent
|
|
78
|
-
laws.
|
|
79
|
-
|
|
80
|
-
A Person claiming eligibility as a Nonprofit shall, upon
|
|
81
|
-
Licensor's reasonable request, provide documentation
|
|
82
|
-
reasonably sufficient to demonstrate that it qualifies
|
|
83
|
-
as a Nonprofit. If such Person materially misrepresents,
|
|
84
|
-
or is unable to demonstrate, its qualification as a
|
|
85
|
-
Nonprofit, the rights granted to such Person under
|
|
86
|
-
Section 2 of this Additional Use Grant shall terminate.
|
|
87
|
-
|
|
88
|
-
"MemberJunction Certified Program" means Licensor's
|
|
89
|
-
then-current program for certifying and authorizing a
|
|
90
|
-
Person to provide professional services using the
|
|
91
|
-
Licensed Work.
|
|
92
|
-
|
|
93
|
-
"Person" means any individual, corporation, limited
|
|
94
|
-
liability company, partnership, association, nonprofit
|
|
95
|
-
organization, governmental entity, or other legal or
|
|
96
|
-
organizational entity.
|
|
97
|
-
|
|
98
|
-
Change Date: Four (4) years from the date the Licensed Work is first
|
|
99
|
-
made available.
|
|
100
|
-
|
|
101
|
-
Change License: MIT License.
|
|
102
|
-
|
|
103
|
-
For information about alternative licensing arrangements for the Licensed
|
|
104
|
-
Work, please contact Blue Cypress, Inc.
|
|
105
|
-
|
|
106
|
-
-----------------------------------------------------------------------------
|
|
107
|
-
|
|
108
|
-
Terms
|
|
109
|
-
|
|
110
|
-
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
111
|
-
works, redistribute, and make non-production use of the Licensed Work. The
|
|
112
|
-
Licensor may make an Additional Use Grant, above, permitting limited
|
|
113
|
-
production use.
|
|
114
|
-
|
|
115
|
-
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
116
|
-
available distribution of a specific version of the Licensed Work under this
|
|
117
|
-
License, whichever comes first, the Licensor hereby grants you rights under
|
|
118
|
-
the terms of the Change License, and the rights granted in the paragraph
|
|
119
|
-
above terminate.
|
|
120
|
-
|
|
121
|
-
If your use of the Licensed Work does not comply with the requirements
|
|
122
|
-
currently in effect as described in this License, you must purchase a
|
|
123
|
-
commercial license from the Licensor, its affiliated entities, or authorized
|
|
124
|
-
resellers, or you must refrain from using the Licensed Work.
|
|
125
|
-
|
|
126
|
-
All copies of the original and modified Licensed Work, and derivative works
|
|
127
|
-
of the Licensed Work, are subject to this License. This License applies
|
|
128
|
-
separately for each version of the Licensed Work and the Change Date may vary
|
|
129
|
-
for each version of the Licensed Work released by Licensor.
|
|
130
|
-
|
|
131
|
-
You must conspicuously display this License on each original or modified copy
|
|
132
|
-
of the Licensed Work. If you receive the Licensed Work in original or
|
|
133
|
-
modified form from a third party, the terms and conditions set forth in this
|
|
134
|
-
License apply to your use of that work.
|
|
135
|
-
|
|
136
|
-
Any use of the Licensed Work in violation of this License will automatically
|
|
137
|
-
terminate your rights under this License for the current and all other
|
|
138
|
-
versions of the Licensed Work.
|
|
139
|
-
|
|
140
|
-
This License does not grant you any right in any trademark or logo of
|
|
141
|
-
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
142
|
-
Licensor as expressly required by this License).
|
|
143
|
-
|
|
144
|
-
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
145
|
-
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
146
|
-
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
147
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
148
|
-
TITLE.
|
|
149
|
-
|
|
150
|
-
MariaDB hereby grants you permission to use this License's text to license
|
|
151
|
-
your works, and to refer to it using the trademark "Business Source License",
|
|
152
|
-
as long as you comply with the Covenants of Licensor below.
|
|
153
|
-
|
|
154
|
-
-----------------------------------------------------------------------------
|
|
155
|
-
|
|
156
|
-
Covenants of Licensor
|
|
157
|
-
|
|
158
|
-
In consideration of the right to use this License's text and the "Business
|
|
159
|
-
Source License" name and trademark, Licensor covenants to MariaDB, and to all
|
|
160
|
-
other recipients of the licensed work to be provided by Licensor:
|
|
161
|
-
|
|
162
|
-
1. To specify as the Change License the GPL Version 2.0 or any later version,
|
|
163
|
-
or a license that is compatible with GPL Version 2.0 or a later version,
|
|
164
|
-
where "compatible" means that software provided under the Change License
|
|
165
|
-
can be included in a program with software provided under GPL Version 2.0
|
|
166
|
-
or a later version. Licensor may specify additional Change Licenses without
|
|
167
|
-
limitation.
|
|
168
|
-
|
|
169
|
-
2. To either: (a) specify an additional grant of rights to use that does not
|
|
170
|
-
impose any additional restriction on the right granted in this License, as
|
|
171
|
-
the Additional Use Grant; or (b) insert the text "None".
|
|
172
|
-
|
|
173
|
-
3. To specify a Change Date.
|
|
174
|
-
|
|
175
|
-
4. Not to modify this License in any other way.
|
|
176
|
-
|
|
177
|
-
-----------------------------------------------------------------------------
|
|
178
|
-
|
|
179
|
-
Notice
|
|
180
|
-
|
|
181
|
-
The Business Source License (this document, or the "License") is not an Open
|
|
182
|
-
Source license. However, the Licensed Work will eventually be made available
|
|
183
|
-
under an Open Source License, as stated in this License.
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
License text copyright (c) 2024 MariaDB plc, All Rights Reserved.
|
|
4
|
+
"Business Source License" is a trademark of MariaDB plc.
|
|
5
|
+
|
|
6
|
+
-----------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
Parameters
|
|
9
|
+
|
|
10
|
+
Licensor: Blue Cypress, Inc.
|
|
11
|
+
|
|
12
|
+
Licensed Work: MemberJunction.
|
|
13
|
+
The Licensed Work is (c) 2023-2026 Blue Cypress, Inc.
|
|
14
|
+
|
|
15
|
+
Additional Use Grant: Subject to the terms of this License, Licensor grants
|
|
16
|
+
you the following additional rights to make Production
|
|
17
|
+
Use of the Licensed Work.
|
|
18
|
+
|
|
19
|
+
1. Internal Use
|
|
20
|
+
|
|
21
|
+
You may make production use of the Licensed Work for
|
|
22
|
+
your own internal business or organizational operations.
|
|
23
|
+
|
|
24
|
+
2. Nonprofit Use
|
|
25
|
+
|
|
26
|
+
If you are a Nonprofit, you may make production use of
|
|
27
|
+
the Licensed Work for the operations and activities of
|
|
28
|
+
your Organizational Family.
|
|
29
|
+
|
|
30
|
+
3. MemberJunction Certified Program Use
|
|
31
|
+
|
|
32
|
+
If you are authorized by Licensor under the
|
|
33
|
+
MemberJunction Certified Program to provide professional
|
|
34
|
+
services using the Licensed Work, you may make
|
|
35
|
+
production use of the Licensed Work in providing such
|
|
36
|
+
professional services to a client, provided that:
|
|
37
|
+
|
|
38
|
+
(a) the Licensed Work is deployed in, and the applicable
|
|
39
|
+
production use occurs within, an environment owned,
|
|
40
|
+
leased, licensed, subscribed to, or otherwise controlled
|
|
41
|
+
by that client; and
|
|
42
|
+
|
|
43
|
+
(b) the production use is for that client's own internal
|
|
44
|
+
business or organizational operations or is otherwise
|
|
45
|
+
independently permitted to that client under this
|
|
46
|
+
Additional Use Grant.
|
|
47
|
+
|
|
48
|
+
4. Definitions Applicable to the Additional Use Grant
|
|
49
|
+
|
|
50
|
+
"Affiliate" means, with respect to a specified Person,
|
|
51
|
+
any other Person that directly or indirectly Controls,
|
|
52
|
+
is Controlled by, or is under common Control with such
|
|
53
|
+
specified Person.
|
|
54
|
+
|
|
55
|
+
"Control" (including the terms "Controls," "Controlled
|
|
56
|
+
by," and "under common Control with") means the direct
|
|
57
|
+
or indirect possession of the power to direct or cause
|
|
58
|
+
the direction of the management and policies of a
|
|
59
|
+
Person, whether through ownership of voting interests,
|
|
60
|
+
by contract, or otherwise.
|
|
61
|
+
|
|
62
|
+
"Organizational Family" means, with respect to a Person,
|
|
63
|
+
(a) such Person and its Affiliates, and (b) any
|
|
64
|
+
nonprofit organization, governmental entity, chapter,
|
|
65
|
+
division, local affiliate, regional affiliate, state
|
|
66
|
+
affiliate, national affiliate, or other entity that is
|
|
67
|
+
formally affiliated with such Person through governing
|
|
68
|
+
documents, a charter, bylaws, a membership agreement, or
|
|
69
|
+
another written organizational instrument, and is
|
|
70
|
+
recognized under such documents as part of the same
|
|
71
|
+
organizational structure.
|
|
72
|
+
|
|
73
|
+
"Nonprofit" means a Person recognized by the Internal
|
|
74
|
+
Revenue Service as exempt from federal income taxation
|
|
75
|
+
under Section 501(c)(3), 501(c)(4), 501(c)(5), or
|
|
76
|
+
501(c)(6) of the Internal Revenue Code, or a foreign
|
|
77
|
+
organization recognized under substantially equivalent
|
|
78
|
+
laws.
|
|
79
|
+
|
|
80
|
+
A Person claiming eligibility as a Nonprofit shall, upon
|
|
81
|
+
Licensor's reasonable request, provide documentation
|
|
82
|
+
reasonably sufficient to demonstrate that it qualifies
|
|
83
|
+
as a Nonprofit. If such Person materially misrepresents,
|
|
84
|
+
or is unable to demonstrate, its qualification as a
|
|
85
|
+
Nonprofit, the rights granted to such Person under
|
|
86
|
+
Section 2 of this Additional Use Grant shall terminate.
|
|
87
|
+
|
|
88
|
+
"MemberJunction Certified Program" means Licensor's
|
|
89
|
+
then-current program for certifying and authorizing a
|
|
90
|
+
Person to provide professional services using the
|
|
91
|
+
Licensed Work.
|
|
92
|
+
|
|
93
|
+
"Person" means any individual, corporation, limited
|
|
94
|
+
liability company, partnership, association, nonprofit
|
|
95
|
+
organization, governmental entity, or other legal or
|
|
96
|
+
organizational entity.
|
|
97
|
+
|
|
98
|
+
Change Date: Four (4) years from the date the Licensed Work is first
|
|
99
|
+
made available.
|
|
100
|
+
|
|
101
|
+
Change License: MIT License.
|
|
102
|
+
|
|
103
|
+
For information about alternative licensing arrangements for the Licensed
|
|
104
|
+
Work, please contact Blue Cypress, Inc.
|
|
105
|
+
|
|
106
|
+
-----------------------------------------------------------------------------
|
|
107
|
+
|
|
108
|
+
Terms
|
|
109
|
+
|
|
110
|
+
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
111
|
+
works, redistribute, and make non-production use of the Licensed Work. The
|
|
112
|
+
Licensor may make an Additional Use Grant, above, permitting limited
|
|
113
|
+
production use.
|
|
114
|
+
|
|
115
|
+
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
116
|
+
available distribution of a specific version of the Licensed Work under this
|
|
117
|
+
License, whichever comes first, the Licensor hereby grants you rights under
|
|
118
|
+
the terms of the Change License, and the rights granted in the paragraph
|
|
119
|
+
above terminate.
|
|
120
|
+
|
|
121
|
+
If your use of the Licensed Work does not comply with the requirements
|
|
122
|
+
currently in effect as described in this License, you must purchase a
|
|
123
|
+
commercial license from the Licensor, its affiliated entities, or authorized
|
|
124
|
+
resellers, or you must refrain from using the Licensed Work.
|
|
125
|
+
|
|
126
|
+
All copies of the original and modified Licensed Work, and derivative works
|
|
127
|
+
of the Licensed Work, are subject to this License. This License applies
|
|
128
|
+
separately for each version of the Licensed Work and the Change Date may vary
|
|
129
|
+
for each version of the Licensed Work released by Licensor.
|
|
130
|
+
|
|
131
|
+
You must conspicuously display this License on each original or modified copy
|
|
132
|
+
of the Licensed Work. If you receive the Licensed Work in original or
|
|
133
|
+
modified form from a third party, the terms and conditions set forth in this
|
|
134
|
+
License apply to your use of that work.
|
|
135
|
+
|
|
136
|
+
Any use of the Licensed Work in violation of this License will automatically
|
|
137
|
+
terminate your rights under this License for the current and all other
|
|
138
|
+
versions of the Licensed Work.
|
|
139
|
+
|
|
140
|
+
This License does not grant you any right in any trademark or logo of
|
|
141
|
+
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
142
|
+
Licensor as expressly required by this License).
|
|
143
|
+
|
|
144
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
145
|
+
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
146
|
+
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
147
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
148
|
+
TITLE.
|
|
149
|
+
|
|
150
|
+
MariaDB hereby grants you permission to use this License's text to license
|
|
151
|
+
your works, and to refer to it using the trademark "Business Source License",
|
|
152
|
+
as long as you comply with the Covenants of Licensor below.
|
|
153
|
+
|
|
154
|
+
-----------------------------------------------------------------------------
|
|
155
|
+
|
|
156
|
+
Covenants of Licensor
|
|
157
|
+
|
|
158
|
+
In consideration of the right to use this License's text and the "Business
|
|
159
|
+
Source License" name and trademark, Licensor covenants to MariaDB, and to all
|
|
160
|
+
other recipients of the licensed work to be provided by Licensor:
|
|
161
|
+
|
|
162
|
+
1. To specify as the Change License the GPL Version 2.0 or any later version,
|
|
163
|
+
or a license that is compatible with GPL Version 2.0 or a later version,
|
|
164
|
+
where "compatible" means that software provided under the Change License
|
|
165
|
+
can be included in a program with software provided under GPL Version 2.0
|
|
166
|
+
or a later version. Licensor may specify additional Change Licenses without
|
|
167
|
+
limitation.
|
|
168
|
+
|
|
169
|
+
2. To either: (a) specify an additional grant of rights to use that does not
|
|
170
|
+
impose any additional restriction on the right granted in this License, as
|
|
171
|
+
the Additional Use Grant; or (b) insert the text "None".
|
|
172
|
+
|
|
173
|
+
3. To specify a Change Date.
|
|
174
|
+
|
|
175
|
+
4. Not to modify this License in any other way.
|
|
176
|
+
|
|
177
|
+
-----------------------------------------------------------------------------
|
|
178
|
+
|
|
179
|
+
Notice
|
|
180
|
+
|
|
181
|
+
The Business Source License (this document, or the "License") is not an Open
|
|
182
|
+
Source license. However, the Licensed Work will eventually be made available
|
|
183
|
+
under an Open Source License, as stated in this License.
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview `Sales.CaptureForecastSnapshot` — the daily snapshot Action (#40).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* whatever source factory is registered, report tallies as outputs, never throw at the caller.
|
|
4
|
+
* Read the params, call the snapshot job, report tallies as outputs, never throw at the caller.
|
|
6
5
|
*
|
|
7
6
|
* @module @mj-biz-apps/sales-server
|
|
8
7
|
*/
|
|
@@ -12,6 +11,6 @@ export declare class CaptureForecastSnapshotAction extends BaseAction {
|
|
|
12
11
|
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
|
|
13
12
|
private capture;
|
|
14
13
|
}
|
|
15
|
-
/** Anti-tree-shaking anchor —
|
|
14
|
+
/** Anti-tree-shaking anchor — `@RegisterClass` is a side effect of import. */
|
|
16
15
|
export declare function LoadCaptureForecastSnapshotAction(): void;
|
|
17
16
|
//# sourceMappingURL=forecast-snapshot.action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forecast-snapshot.action.d.ts","sourceRoot":"","sources":["../../src/custom/forecast-snapshot.action.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"forecast-snapshot.action.d.ts","sourceRoot":"","sources":["../../src/custom/forecast-snapshot.action.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAgCrG,qBACa,6BAA8B,SAAQ,UAAU;cACzC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;YAYzE,OAAO;CAyDxB;AAED,8EAA8E;AAC9E,wBAAgB,iCAAiC,IAAI,IAAI,CAExD"}
|
|
@@ -7,8 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
/**
|
|
8
8
|
* @fileoverview `Sales.CaptureForecastSnapshot` — the daily snapshot Action (#40).
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* whatever source factory is registered, report tallies as outputs, never throw at the caller.
|
|
10
|
+
* Read the params, call the snapshot job, report tallies as outputs, never throw at the caller.
|
|
12
11
|
*
|
|
13
12
|
* @module @mj-biz-apps/sales-server
|
|
14
13
|
*/
|
|
@@ -105,7 +104,7 @@ CaptureForecastSnapshotAction = __decorate([
|
|
|
105
104
|
RegisterClass(BaseAction, 'Sales.CaptureForecastSnapshot')
|
|
106
105
|
], CaptureForecastSnapshotAction);
|
|
107
106
|
export { CaptureForecastSnapshotAction };
|
|
108
|
-
/** Anti-tree-shaking anchor —
|
|
107
|
+
/** Anti-tree-shaking anchor — `@RegisterClass` is a side effect of import. */
|
|
109
108
|
export function LoadCaptureForecastSnapshotAction() {
|
|
110
109
|
void CaptureForecastSnapshotAction;
|
|
111
110
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forecast-snapshot.action.js","sourceRoot":"","sources":["../../src/custom/forecast-snapshot.action.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"forecast-snapshot.action.js","sourceRoot":"","sources":["../../src/custom/forecast-snapshot.action.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAuB,MAAM,yCAAyC,CAAC;AAEnG,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,YAAY,GAAG,WAAW,CAAC;AAEjC,SAAS,SAAS,CAAC,MAAuB,EAAE,IAAY;IACpD,OAAO,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,KAAK,CAAC;AAC3F,CAAC;AA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W,IAAI,IAAI,CAAC,CAAC;QACrE,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,IAAI,IAAI,CAAC,CAAC;QACjE,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QAE3D;;;;WAIG;QACH,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACjB,OAAO;gBACH,OAAO,EAAE,IAAI;gBACb,UAAU,EAAE,WAAW;gBACvB,OAAO,EACH,wFAAwF;sBACtF,yCAAyC;aAClD,CAAC;QACN,CAAC;QAED,OAAO;YACH,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;YAClD,OAAO,EACH,UAAU,MAAM,CAAC,MAAM,CAAC,WAAW,OAAO,MAAM,CAAC,MAAM,CAAC,SAAS,aAAa;kBAC5E,GAAG,MAAM,CAAC,QAAQ,WAAW,MAAM,CAAC,OAAO,YAAY;kBACvD,GAAG,MAAM,CAAC,wBAAwB,0BAA0B;kBAC5D,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC9E,CAAC;IACN,CAAC;CACJ,CAAA;AAtEY,6BAA6B;IADzC,aAAa,CAAC,UAAU,EAAE,+BAA+B,CAAC;GAC9C,6BAA6B,CAsEzC;;AAED,8EAA8E;AAC9E,MAAM,UAAU,iCAAiC;IAC7C,KAAK,6BAA6B,CAAC;AACvC,CAAC"}
|
|
@@ -34,6 +34,6 @@ export declare class LogActivityAction extends BaseAction {
|
|
|
34
34
|
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
|
|
35
35
|
private log;
|
|
36
36
|
}
|
|
37
|
-
/** Anti-tree-shaking anchor —
|
|
37
|
+
/** Anti-tree-shaking anchor — `@RegisterClass` is a side effect of import. */
|
|
38
38
|
export declare function LoadLogActivityAction(): void;
|
|
39
39
|
//# sourceMappingURL=log-activity.action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-activity.action.d.ts","sourceRoot":"","sources":["../../src/custom/log-activity.action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAsCrG,qBACa,iBAAkB,SAAQ,UAAU;cAC7B,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;YAczE,GAAG;CAwFpB;AAED,
|
|
1
|
+
{"version":3,"file":"log-activity.action.d.ts","sourceRoot":"","sources":["../../src/custom/log-activity.action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAsCrG,qBACa,iBAAkB,SAAQ,UAAU;cAC7B,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;YAczE,GAAG;CAwFpB;AAED,8EAA8E;AAC9E,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}
|
|
@@ -161,7 +161,7 @@ LogActivityAction = __decorate([
|
|
|
161
161
|
RegisterClass(BaseAction, 'Sales.LogActivity')
|
|
162
162
|
], LogActivityAction);
|
|
163
163
|
export { LogActivityAction };
|
|
164
|
-
/** Anti-tree-shaking anchor —
|
|
164
|
+
/** Anti-tree-shaking anchor — `@RegisterClass` is a side effect of import. */
|
|
165
165
|
export function LoadLogActivityAction() {
|
|
166
166
|
void LogActivityAction;
|
|
167
167
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-activity.action.js","sourceRoot":"","sources":["../../src/custom/log-activity.action.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhF,MAAM,SAAS,GAAG,QAAQ,CAAC;AAC3B,MAAM,WAAW,GAAG,UAAU,CAAC;AAC/B,MAAM,OAAO,GAAG,OAAO,CAAC;AACxB,MAAM,OAAO,GAAG,OAAO,CAAC;AACxB,MAAM,YAAY,GAAG,WAAW,CAAC;AAEjC,mGAAmG;AACnG,MAAM,QAAQ,GAAgC,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAEnF,SAAS,SAAS,CAAC,MAAuB,EAAE,IAAY;IACpD,OAAO,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,KAAK,CAAC;AAC3F,CAAC;AAED,SAAS,QAAQ,CAAC,MAAuB,EAAE,IAAY;IACnD,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACpC,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAA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
|
|
|
21
21
|
* startupExport entry point named in mj-app.json.
|
|
22
22
|
*/
|
|
23
23
|
export declare function LoadBizAppsSalesServer(): void;
|
|
24
|
-
export { SyncActivitiesAction, LoadSyncActivitiesAction } from './custom/sync-activities.action.js';
|
|
25
24
|
export { CaptureForecastSnapshotAction, LoadCaptureForecastSnapshotAction, } from './custom/forecast-snapshot.action.js';
|
|
26
25
|
export { LogActivityAction, LoadLogActivityAction } from './custom/log-activity.action.js';
|
|
27
26
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,6BAA6B,CAAC;AACrC,OAAO,4BAA4B,CAAC;AAOpC,OAAO,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,6BAA6B,CAAC;AACrC,OAAO,4BAA4B,CAAC;AAOpC,OAAO,yCAAyC,CAAC;AAMjD,OAAO,0BAA0B,CAAC;AAMlC,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAOlF;;;GAGG;AACH,eAAO,MAAM,cAAc,UAG1B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAkB7C;AAED,OAAO,EACH,6BAA6B,EAC7B,iCAAiC,GACpC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15,8 +15,6 @@ import { LoadSalesDealEntities } from '@mj-biz-apps/sales-entities';
|
|
|
15
15
|
// Record Collections now, so no hand-rolled tree lives here any more. The close lock lands at S4.
|
|
16
16
|
import '@mj-biz-apps/sales-core-entities-server';
|
|
17
17
|
import { LoadSalesCoreEntitiesServer } from '@mj-biz-apps/sales-core-entities-server';
|
|
18
|
-
/** Sales' first hand-written Action. Anchored below for the same reason the entities are. */
|
|
19
|
-
import { LoadSyncActivitiesAction } from './custom/sync-activities.action.js';
|
|
20
18
|
import { LoadCaptureForecastSnapshotAction } from './custom/forecast-snapshot.action.js';
|
|
21
19
|
import { LoadLogActivityAction } from './custom/log-activity.action.js';
|
|
22
20
|
// Import generated GraphQL resolvers
|
|
@@ -52,18 +50,11 @@ export function LoadBizAppsSalesServer() {
|
|
|
52
50
|
// the imports, ClassFactory then resolves a less-derived Deal class instead of DealEntityServer,
|
|
53
51
|
// and deal numbering plus the owner stamp silently stop applying.
|
|
54
52
|
LoadSalesCoreEntitiesServer();
|
|
55
|
-
/**
|
|
56
|
-
* THE ACTION, and it needs the same anchoring as the entity classes for the same reason: its
|
|
57
|
-
* `@RegisterClass` runs as a side effect of the import, so a tree-shaken import leaves
|
|
58
|
-
* `Sales.SyncActivities` present in metadata, scheduled, firing, and resolving to nothing.
|
|
59
|
-
*/
|
|
60
|
-
LoadSyncActivitiesAction();
|
|
61
53
|
LoadCaptureForecastSnapshotAction();
|
|
62
54
|
LoadLogActivityAction();
|
|
63
55
|
// Referenced so the manifest import is not elided; MJ reads it during registration.
|
|
64
56
|
void CLASS_REGISTRATIONS;
|
|
65
57
|
}
|
|
66
|
-
export { SyncActivitiesAction, LoadSyncActivitiesAction } from './custom/sync-activities.action.js';
|
|
67
58
|
export { CaptureForecastSnapshotAction, LoadCaptureForecastSnapshotAction, } from './custom/forecast-snapshot.action.js';
|
|
68
59
|
export { LogActivityAction, LoadLogActivityAction } from './custom/log-activity.action.js';
|
|
69
60
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,yEAAyE;AACzE,OAAO,6BAA6B,CA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AIG;AACH,MAAM,UAAU,sBAAsB;IAClC,4FAA4F;IAC5F,iGAAiG;IACjG,mGAAmG;IACnG,+DAA+D;IAC/D,qBAAqB,EAAE,CAAC;IAExB,qFAAqF;IACrF,mGAAmG;IACnG,iGAAiG;IACjG,kEAAkE;IAClE,2BAA2B,EAAE,CAAC;IAE9B,iCAAiC,EAAE,CAAC;IACpC,qBAAqB,EAAE,CAAC;IAExB,oFAAoF;IACpF,KAAK,mBAAmB,CAAC;AAC7B,CAAC;AAED,OAAO,EACH,6BAA6B,EAC7B,iCAAiC,GACpC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mj-biz-apps/sales-server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.0",
|
|
5
5
|
"description": "BizApps Sales server bootstrap - GraphQL resolvers and class registrations for the deal-pipeline Open App",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"typescript": "^5.9.3"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@mj-biz-apps/sales-actions": "
|
|
23
|
-
"@mj-biz-apps/sales-core-entities-server": "
|
|
24
|
-
"@mj-biz-apps/sales-entities": "
|
|
22
|
+
"@mj-biz-apps/sales-actions": "6.0.0",
|
|
23
|
+
"@mj-biz-apps/sales-core-entities-server": "6.0.0",
|
|
24
|
+
"@mj-biz-apps/sales-entities": "6.0.0",
|
|
25
25
|
"class-validator": "^0.14.3"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview `Sales.SyncActivities` — the MJ Action a `ScheduledJob` fires hourly.
|
|
3
|
-
*
|
|
4
|
-
* ── WHERE THIS LIVES, AND WHY NOT IN `packages/Actions` ─────────────────────────────────────────
|
|
5
|
-
*
|
|
6
|
-
* `packages/Actions` holds only CodeGen output. Orders puts its hand-written actions in
|
|
7
|
-
* `packages/Server/src/custom/*.action.ts` — `Orders.GenerateInvoice`, `Orders.SendDocument` — and this
|
|
8
|
-
* follows that exactly, because the alternative is a second convention for the same thing in the same
|
|
9
|
-
* workspace. Sales had no action of its own before this one, so there was nothing local to match.
|
|
10
|
-
*
|
|
11
|
-
* ── WHAT IT DOES, AND WHAT IT DELIBERATELY DOES NOT DECIDE ──────────────────────────────────────
|
|
12
|
-
*
|
|
13
|
-
* It calls `ActivitySyncJob.Run()` with whatever source factory is currently registered, and reports the
|
|
14
|
-
* tallies. It does NOT choose the source: that is `CurrentActivitySourceFactory()`, whose default is an
|
|
15
|
-
* empty fixture, and swapping it is the single change a scoped mailbox credential requires. An action
|
|
16
|
-
* that picked its own source would put that decision behind a metadata row nobody reads.
|
|
17
|
-
*
|
|
18
|
-
* @module @mj-biz-apps/sales-server
|
|
19
|
-
*/
|
|
20
|
-
import { BaseAction } from '@memberjunction/actions';
|
|
21
|
-
import type { ActionResultSimple, RunActionParams } from '@memberjunction/actions-base';
|
|
22
|
-
export declare class SyncActivitiesAction extends BaseAction {
|
|
23
|
-
/**
|
|
24
|
-
* AN ACTION MUST NOT THROW AT ITS CALLER. The scheduler, a workflow and a manual "run now" all want a
|
|
25
|
-
* result they can branch on; an exception loses the tallies from the mailboxes that did succeed. So
|
|
26
|
-
* the whole body runs behind this and every failure comes back as `Success: false` with a code.
|
|
27
|
-
*/
|
|
28
|
-
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
|
|
29
|
-
private sync;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* WITHOUT THIS ANCHOR the class is tree-shaken out of the bundle, the `@RegisterClass` decorator never
|
|
33
|
-
* runs, and `ActionEngine` finds no implementation for `Sales.SyncActivities` — which surfaces as an
|
|
34
|
-
* action that exists in metadata, is scheduled, fires, and does nothing at all.
|
|
35
|
-
*/
|
|
36
|
-
export declare function LoadSyncActivitiesAction(): void;
|
|
37
|
-
//# sourceMappingURL=sync-activities.action.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync-activities.action.d.ts","sourceRoot":"","sources":["../../src/custom/sync-activities.action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAyBrG,qBACa,oBAAqB,SAAQ,UAAU;IAChD;;;;OAIG;cACa,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;YAYzE,IAAI;CA+DrB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAE/C"}
|
|
@@ -1,124 +0,0 @@
|
|
|
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
|
-
/**
|
|
8
|
-
* @fileoverview `Sales.SyncActivities` — the MJ Action a `ScheduledJob` fires hourly.
|
|
9
|
-
*
|
|
10
|
-
* ── WHERE THIS LIVES, AND WHY NOT IN `packages/Actions` ─────────────────────────────────────────
|
|
11
|
-
*
|
|
12
|
-
* `packages/Actions` holds only CodeGen output. Orders puts its hand-written actions in
|
|
13
|
-
* `packages/Server/src/custom/*.action.ts` — `Orders.GenerateInvoice`, `Orders.SendDocument` — and this
|
|
14
|
-
* follows that exactly, because the alternative is a second convention for the same thing in the same
|
|
15
|
-
* workspace. Sales had no action of its own before this one, so there was nothing local to match.
|
|
16
|
-
*
|
|
17
|
-
* ── WHAT IT DOES, AND WHAT IT DELIBERATELY DOES NOT DECIDE ──────────────────────────────────────
|
|
18
|
-
*
|
|
19
|
-
* It calls `ActivitySyncJob.Run()` with whatever source factory is currently registered, and reports the
|
|
20
|
-
* tallies. It does NOT choose the source: that is `CurrentActivitySourceFactory()`, whose default is an
|
|
21
|
-
* empty fixture, and swapping it is the single change a scoped mailbox credential requires. An action
|
|
22
|
-
* that picked its own source would put that decision behind a metadata row nobody reads.
|
|
23
|
-
*
|
|
24
|
-
* @module @mj-biz-apps/sales-server
|
|
25
|
-
*/
|
|
26
|
-
import { BaseAction } from '@memberjunction/actions';
|
|
27
|
-
import { Metadata } from '@memberjunction/core';
|
|
28
|
-
import { RegisterClass } from '@memberjunction/global';
|
|
29
|
-
import { ActivitySyncJob, CurrentActivitySourceFactory } from '@mj-biz-apps/sales-core-entities-server';
|
|
30
|
-
/** The one input: how many items to pull per mailbox per run. */
|
|
31
|
-
const P_LIMIT = 'Limit';
|
|
32
|
-
/** Default matching `ActivitySyncJob.Run`'s own, so metadata and code cannot disagree silently. */
|
|
33
|
-
const DEFAULT_LIMIT = 100;
|
|
34
|
-
function readParam(params, name) {
|
|
35
|
-
return params.Params?.find((p) => p.Name?.toLowerCase() === name.toLowerCase())?.Value;
|
|
36
|
-
}
|
|
37
|
-
function setOutput(params, name, value) {
|
|
38
|
-
const existing = params.Params?.find((p) => p.Name?.toLowerCase() === name.toLowerCase());
|
|
39
|
-
if (existing) {
|
|
40
|
-
existing.Value = value;
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
params.Params = params.Params ?? [];
|
|
44
|
-
params.Params.push({ Name: name, Value: value, Type: 'Output' });
|
|
45
|
-
}
|
|
46
|
-
let SyncActivitiesAction = class SyncActivitiesAction extends BaseAction {
|
|
47
|
-
/**
|
|
48
|
-
* AN ACTION MUST NOT THROW AT ITS CALLER. The scheduler, a workflow and a manual "run now" all want a
|
|
49
|
-
* result they can branch on; an exception loses the tallies from the mailboxes that did succeed. So
|
|
50
|
-
* the whole body runs behind this and every failure comes back as `Success: false` with a code.
|
|
51
|
-
*/
|
|
52
|
-
async InternalRunAction(params) {
|
|
53
|
-
try {
|
|
54
|
-
return await this.sync(params);
|
|
55
|
-
}
|
|
56
|
-
catch (error) {
|
|
57
|
-
return {
|
|
58
|
-
Success: false,
|
|
59
|
-
ResultCode: 'ERROR',
|
|
60
|
-
Message: `The activity sync failed: ${error instanceof Error ? error.message : String(error)}`,
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
async sync(params) {
|
|
65
|
-
const raw = readParam(params, P_LIMIT);
|
|
66
|
-
const parsed = raw === null || raw === undefined || raw === '' ? DEFAULT_LIMIT : Number(raw);
|
|
67
|
-
const limit = Number.isFinite(parsed) && parsed > 0 ? Math.floor(parsed) : DEFAULT_LIMIT;
|
|
68
|
-
/**
|
|
69
|
-
* `Metadata.Provider` rather than an injected provider, because there is exactly ONE provider per
|
|
70
|
-
* server process — the bootstrapped one. That is also what makes the writes join any ambient
|
|
71
|
-
* transaction, which is what lets the integration checks drive this inside a rollback.
|
|
72
|
-
*/
|
|
73
|
-
const provider = Metadata.Provider;
|
|
74
|
-
const result = await new ActivitySyncJob().Run(CurrentActivitySourceFactory(), provider, params.ContextUser, limit);
|
|
75
|
-
const totals = result.Runs.reduce((sum, run) => ({
|
|
76
|
-
Fetched: sum.Fetched + run.Result.Fetched,
|
|
77
|
-
Relevant: sum.Relevant + run.Result.Relevant,
|
|
78
|
-
Written: sum.Written + run.Result.Written,
|
|
79
|
-
Duplicates: sum.Duplicates + run.Result.Duplicates,
|
|
80
|
-
Unattributed: sum.Unattributed + run.Result.Unattributed,
|
|
81
|
-
}), { Fetched: 0, Relevant: 0, Written: 0, Duplicates: 0, Unattributed: 0 });
|
|
82
|
-
setOutput(params, 'ConnectionsAttempted', result.ConnectionsAttempted);
|
|
83
|
-
setOutput(params, 'Fetched', totals.Fetched);
|
|
84
|
-
setOutput(params, 'Written', totals.Written);
|
|
85
|
-
setOutput(params, 'Duplicates', totals.Duplicates);
|
|
86
|
-
setOutput(params, 'Unattributed', totals.Unattributed);
|
|
87
|
-
setOutput(params, 'Issues', JSON.stringify(result.Issues));
|
|
88
|
-
/**
|
|
89
|
-
* ZERO CONNECTIONS IS A SUCCESS, and the message says so rather than leaving a bare "0 written"
|
|
90
|
-
* to be read as a failure. A deployment that has not been given a mailbox is the ordinary state
|
|
91
|
-
* today, and an hourly job that reports failure for it would train everyone to ignore the job log
|
|
92
|
-
* before there was ever anything in it worth reading.
|
|
93
|
-
*/
|
|
94
|
-
if (result.ConnectionsAttempted === 0) {
|
|
95
|
-
return {
|
|
96
|
-
Success: true,
|
|
97
|
-
ResultCode: 'NO_CONNECTIONS',
|
|
98
|
-
Message: 'No Active Microsoft365 sync connection exists, so nothing was read. The chain is wired; '
|
|
99
|
-
+ 'it has no mailbox to point at.',
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
return {
|
|
103
|
-
Success: result.Success,
|
|
104
|
-
ResultCode: result.Success ? 'SUCCESS' : 'PARTIAL',
|
|
105
|
-
Message: `${result.ConnectionsAttempted} connection(s): fetched ${totals.Fetched}, `
|
|
106
|
-
+ `relevant ${totals.Relevant}, written ${totals.Written}, `
|
|
107
|
-
+ `duplicates ${totals.Duplicates}, unattributed ${totals.Unattributed}.`
|
|
108
|
-
+ (result.Issues.length ? ` Issues: ${result.Issues.join(' | ')}` : ''),
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
SyncActivitiesAction = __decorate([
|
|
113
|
-
RegisterClass(BaseAction, 'Sales.SyncActivities')
|
|
114
|
-
], SyncActivitiesAction);
|
|
115
|
-
export { SyncActivitiesAction };
|
|
116
|
-
/**
|
|
117
|
-
* WITHOUT THIS ANCHOR the class is tree-shaken out of the bundle, the `@RegisterClass` decorator never
|
|
118
|
-
* runs, and `ActionEngine` finds no implementation for `Sales.SyncActivities` — which surfaces as an
|
|
119
|
-
* action that exists in metadata, is scheduled, fires, and does nothing at all.
|
|
120
|
-
*/
|
|
121
|
-
export function LoadSyncActivitiesAction() {
|
|
122
|
-
void SyncActivitiesAction;
|
|
123
|
-
}
|
|
124
|
-
//# sourceMappingURL=sync-activities.action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync-activities.action.js","sourceRoot":"","sources":["../../src/custom/sync-activities.action.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAExG,iEAAiE;AACjE,MAAM,OAAO,GAAG,OAAO,CAAC;AAExB,mGAAmG;AACnG,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B,SAAS,SAAS,CAAC,MAAuB,EAAE,IAAY;IACpD,OAAO,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,KAAK,CAAC;AAC3F,CAAC;AAED,SAAS,SAAS,CAAC,MAAuB,EAAE,IAAY,EAAE,KAAc;IACpE,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,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