@arrowsphere/api-client 3.168.0-rc.bdj-5 → 3.169.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.169.0] - 2025.02.07
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [order] Define a new type for programs
|
|
10
|
+
- [graphql-api] add queries getLocalContact, getSpecialPriceRatesHistory
|
|
11
|
+
### Updated
|
|
12
|
+
- [graphql-api] update query findOneById
|
|
13
|
+
|
|
14
|
+
## [3.168.0] - 2025.02.05
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- [catalog] added description field on ProgramExtraInfoItemFields
|
|
18
|
+
### Fixed
|
|
19
|
+
- [order] Define a new type for programs
|
|
20
|
+
|
|
21
|
+
## [3.167.1] - 2025.02.05
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
- [campaign] update CampaignInputType schema add field Banner and remove field Banners
|
|
25
|
+
|
|
6
26
|
## [3.167.0] - 2025.02.04
|
|
7
27
|
|
|
8
28
|
### Added
|
|
@@ -22,7 +22,7 @@ export declare enum CampaignInputFields {
|
|
|
22
22
|
COLUMN_RULES = "rules",
|
|
23
23
|
COLUMN_START_DATE = "startDate",
|
|
24
24
|
COLUMN_END_DATE = "endDate",
|
|
25
|
-
|
|
25
|
+
COLUMN_BANNER = "banner",
|
|
26
26
|
COLUMN_LANDING_PAGE = "landingPage"
|
|
27
27
|
}
|
|
28
28
|
export declare enum RulesInputFields {
|
|
@@ -41,19 +41,19 @@ export declare type RulesInputType = {
|
|
|
41
41
|
[RulesInputFields.COLUMN_RESELLERS]?: string[];
|
|
42
42
|
[RulesInputFields.COLUMN_END_CUSTOMERS]?: string[];
|
|
43
43
|
};
|
|
44
|
-
export declare enum
|
|
44
|
+
export declare enum BannerInputFields {
|
|
45
45
|
COLUMN_TYPE = "type",
|
|
46
46
|
COLUMN_BUTTON_PLACEMENT = "buttonPlacement",
|
|
47
47
|
COLUMN_BUTTON_TEXT = "buttonText",
|
|
48
48
|
COLUMN_TEXT = "text",
|
|
49
49
|
COLUMN_TEXT_COLOR = "textColor"
|
|
50
50
|
}
|
|
51
|
-
export declare type
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
[
|
|
51
|
+
export declare type BannerInputType = {
|
|
52
|
+
[BannerInputFields.COLUMN_TYPE]?: string;
|
|
53
|
+
[BannerInputFields.COLUMN_BUTTON_PLACEMENT]?: string;
|
|
54
|
+
[BannerInputFields.COLUMN_BUTTON_TEXT]?: string;
|
|
55
|
+
[BannerInputFields.COLUMN_TEXT]?: string;
|
|
56
|
+
[BannerInputFields.COLUMN_TEXT_COLOR]?: string;
|
|
57
57
|
};
|
|
58
58
|
export declare enum LandingPageHeaderInputFields {
|
|
59
59
|
COLUMN_BACKGROUND_COLOR = "backgroundColor",
|
|
@@ -119,7 +119,7 @@ export declare type CampaignInputType = {
|
|
|
119
119
|
[CampaignInputFields.COLUMN_RULES]?: RulesInputType;
|
|
120
120
|
[CampaignInputFields.COLUMN_START_DATE]?: string;
|
|
121
121
|
[CampaignInputFields.COLUMN_END_DATE]?: string;
|
|
122
|
-
[CampaignInputFields.
|
|
122
|
+
[CampaignInputFields.COLUMN_BANNER]?: BannerInputType;
|
|
123
123
|
[CampaignInputFields.COLUMN_LANDING_PAGE]?: LandingPageInputType;
|
|
124
124
|
};
|
|
125
125
|
export declare type PostEmailCampaignMetadataType = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CampaignClient = exports.LandingPageInputFields = exports.LandingPageFooterInputFields = exports.LandingPageBodyInputFields = exports.LandingPageHeaderInputFields = exports.
|
|
3
|
+
exports.CampaignClient = exports.LandingPageInputFields = exports.LandingPageFooterInputFields = exports.LandingPageBodyInputFields = exports.LandingPageHeaderInputFields = exports.BannerInputFields = exports.RulesInputFields = exports.CampaignInputFields = exports.PostEmailCampaignFields = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
5
|
const getResult_1 = require("../getResult");
|
|
6
6
|
const campaign_1 = require("./entities/campaign/campaign");
|
|
@@ -23,7 +23,7 @@ var CampaignInputFields;
|
|
|
23
23
|
CampaignInputFields["COLUMN_RULES"] = "rules";
|
|
24
24
|
CampaignInputFields["COLUMN_START_DATE"] = "startDate";
|
|
25
25
|
CampaignInputFields["COLUMN_END_DATE"] = "endDate";
|
|
26
|
-
CampaignInputFields["
|
|
26
|
+
CampaignInputFields["COLUMN_BANNER"] = "banner";
|
|
27
27
|
CampaignInputFields["COLUMN_LANDING_PAGE"] = "landingPage";
|
|
28
28
|
})(CampaignInputFields = exports.CampaignInputFields || (exports.CampaignInputFields = {}));
|
|
29
29
|
var RulesInputFields;
|
|
@@ -35,14 +35,14 @@ var RulesInputFields;
|
|
|
35
35
|
RulesInputFields["COLUMN_RESELLERS"] = "resellers";
|
|
36
36
|
RulesInputFields["COLUMN_END_CUSTOMERS"] = "endCustomers";
|
|
37
37
|
})(RulesInputFields = exports.RulesInputFields || (exports.RulesInputFields = {}));
|
|
38
|
-
var
|
|
39
|
-
(function (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
})(
|
|
38
|
+
var BannerInputFields;
|
|
39
|
+
(function (BannerInputFields) {
|
|
40
|
+
BannerInputFields["COLUMN_TYPE"] = "type";
|
|
41
|
+
BannerInputFields["COLUMN_BUTTON_PLACEMENT"] = "buttonPlacement";
|
|
42
|
+
BannerInputFields["COLUMN_BUTTON_TEXT"] = "buttonText";
|
|
43
|
+
BannerInputFields["COLUMN_TEXT"] = "text";
|
|
44
|
+
BannerInputFields["COLUMN_TEXT_COLOR"] = "textColor";
|
|
45
|
+
})(BannerInputFields = exports.BannerInputFields || (exports.BannerInputFields = {}));
|
|
46
46
|
var LandingPageHeaderInputFields;
|
|
47
47
|
(function (LandingPageHeaderInputFields) {
|
|
48
48
|
LandingPageHeaderInputFields["COLUMN_BACKGROUND_COLOR"] = "backgroundColor";
|
|
@@ -22,7 +22,8 @@ export declare enum ProgramExtraInfoItemFields {
|
|
|
22
22
|
LABEL = "label",
|
|
23
23
|
TYPE = "type",
|
|
24
24
|
REGEX = "regex",
|
|
25
|
-
MANDATORY = "mandatory"
|
|
25
|
+
MANDATORY = "mandatory",
|
|
26
|
+
DESCRIPTION = "description"
|
|
26
27
|
}
|
|
27
28
|
export declare type ProgramType = {
|
|
28
29
|
[ProgramFields.REFERENCE]?: string;
|
|
@@ -48,6 +49,7 @@ export declare type ExtraInfoItemType = {
|
|
|
48
49
|
[ProgramExtraInfoItemFields.TYPE]: string;
|
|
49
50
|
[ProgramExtraInfoItemFields.REGEX]: string;
|
|
50
51
|
[ProgramExtraInfoItemFields.MANDATORY]: boolean;
|
|
52
|
+
[ProgramExtraInfoItemFields.DESCRIPTION]?: string;
|
|
51
53
|
};
|
|
52
54
|
export declare class Program extends AbstractEntity<ProgramType> {
|
|
53
55
|
#private;
|
|
@@ -42,6 +42,7 @@ var ProgramExtraInfoItemFields;
|
|
|
42
42
|
ProgramExtraInfoItemFields["TYPE"] = "type";
|
|
43
43
|
ProgramExtraInfoItemFields["REGEX"] = "regex";
|
|
44
44
|
ProgramExtraInfoItemFields["MANDATORY"] = "mandatory";
|
|
45
|
+
ProgramExtraInfoItemFields["DESCRIPTION"] = "description";
|
|
45
46
|
})(ProgramExtraInfoItemFields = exports.ProgramExtraInfoItemFields || (exports.ProgramExtraInfoItemFields = {}));
|
|
46
47
|
class Program extends abstractEntity_1.AbstractEntity {
|
|
47
48
|
constructor(input) {
|
|
@@ -49,6 +49,11 @@ export declare enum scenarioType {
|
|
|
49
49
|
RECONCILIATION = "reconciliation",
|
|
50
50
|
PROVISION = "provision"
|
|
51
51
|
}
|
|
52
|
+
export declare type OrderProgramsType = {
|
|
53
|
+
[key: string]: {
|
|
54
|
+
[name: string]: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
52
57
|
export declare type CreateOrderInputType = {
|
|
53
58
|
[CreateOrderInputFields.COLUMN_CUSTOMER]: {
|
|
54
59
|
[CreateOrderInputFields.COLUMN_REFERENCE]: string;
|
|
@@ -58,11 +63,7 @@ export declare type CreateOrderInputType = {
|
|
|
58
63
|
[CreateOrderInputFields.COLUMN_SCHEDULE_DATE]?: string;
|
|
59
64
|
[CreateOrderInputFields.COLUMN_PRODUCTS]: Array<CreateOrderProductType>;
|
|
60
65
|
[CreateOrderInputFields.COLUMN_EXTRA_INFORMATION]?: {
|
|
61
|
-
programs:
|
|
62
|
-
[key: string]: {
|
|
63
|
-
[name: string]: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
+
programs: OrderProgramsType;
|
|
66
67
|
};
|
|
67
68
|
[CreateOrderInputFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
|
|
68
69
|
};
|
package/package.json
CHANGED