@zohocrm/typescript-sdk-8.0 1.0.0 → 2.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.
@@ -95,6 +95,7 @@ declare class Fields implements Model {
95
95
  protected pickListValues: Array<PickListValue>;
96
96
  protected crypt: Crypt;
97
97
  protected tooltip: Tooltip;
98
+ protected historyTrackingEnabled: boolean;
98
99
  protected historyTracking: HistoryTracking;
99
100
  protected associationDetails: AssociationDetails;
100
101
  protected allowedModules: Array<MinifiedModule>;
@@ -768,6 +769,16 @@ declare class Fields implements Model {
768
769
  * @param tooltip An instance of Tooltip
769
770
  */
770
771
  setTooltip(tooltip: Tooltip): void;
772
+ /**
773
+ * The method to get the historyTrackingEnabled
774
+ * @returns A Boolean representing the historyTrackingEnabled
775
+ */
776
+ getHistoryTrackingEnabled(): boolean;
777
+ /**
778
+ * The method to set the value to historyTrackingEnabled
779
+ * @param historyTrackingEnabled A Boolean representing the historyTrackingEnabled
780
+ */
781
+ setHistoryTrackingEnabled(historyTrackingEnabled: boolean): void;
771
782
  /**
772
783
  * The method to get the historyTracking
773
784
  * @returns An instance of HistoryTracking
@@ -995,6 +995,21 @@ class Fields {
995
995
  this.tooltip = tooltip;
996
996
  this.keyModified.set("tooltip", 1);
997
997
  }
998
+ /**
999
+ * The method to get the historyTrackingEnabled
1000
+ * @returns A Boolean representing the historyTrackingEnabled
1001
+ */
1002
+ getHistoryTrackingEnabled() {
1003
+ return this.historyTrackingEnabled;
1004
+ }
1005
+ /**
1006
+ * The method to set the value to historyTrackingEnabled
1007
+ * @param historyTrackingEnabled A Boolean representing the historyTrackingEnabled
1008
+ */
1009
+ setHistoryTrackingEnabled(historyTrackingEnabled) {
1010
+ this.historyTrackingEnabled = historyTrackingEnabled;
1011
+ this.keyModified.set("history_tracking_enabled", 1);
1012
+ }
998
1013
  /**
999
1014
  * The method to get the historyTracking
1000
1015
  * @returns An instance of HistoryTracking
@@ -1,10 +1,45 @@
1
1
  import { HistoryTrackingModule } from "./history_tracking_module";
2
+ import { MinifiedField } from "./minified_field";
2
3
  import { MinifiedModule } from "../modules/minified_module";
4
+ import { Choice } from "../../../../../../utils/util/choice";
3
5
  import { Model } from "../../../../../../utils/util/model";
4
6
  declare class HistoryTracking implements Model {
7
+ private relatedListName;
8
+ private durationConfiguration;
9
+ private followedFields;
5
10
  private module;
6
11
  private durationConfiguredField;
7
12
  private keyModified;
13
+ /**
14
+ * The method to get the relatedListName
15
+ * @returns A String representing the relatedListName
16
+ */
17
+ getRelatedListName(): string;
18
+ /**
19
+ * The method to set the value to relatedListName
20
+ * @param relatedListName A String representing the relatedListName
21
+ */
22
+ setRelatedListName(relatedListName: string): void;
23
+ /**
24
+ * The method to get the durationConfiguration
25
+ * @returns An instance of Choice<string>
26
+ */
27
+ getDurationConfiguration(): Choice<string>;
28
+ /**
29
+ * The method to set the value to durationConfiguration
30
+ * @param durationConfiguration An instance of Choice<string>
31
+ */
32
+ setDurationConfiguration(durationConfiguration: Choice<string>): void;
33
+ /**
34
+ * The method to get the followedFields
35
+ * @returns An Array representing the followedFields
36
+ */
37
+ getFollowedFields(): Array<MinifiedField>;
38
+ /**
39
+ * The method to set the value to followedFields
40
+ * @param followedFields An Array representing the followedFields
41
+ */
42
+ setFollowedFields(followedFields: Array<MinifiedField>): void;
8
43
  /**
9
44
  * The method to get the module
10
45
  * @returns An instance of HistoryTrackingModule
@@ -5,6 +5,51 @@ class HistoryTracking {
5
5
  constructor() {
6
6
  this.keyModified = new Map();
7
7
  }
8
+ /**
9
+ * The method to get the relatedListName
10
+ * @returns A String representing the relatedListName
11
+ */
12
+ getRelatedListName() {
13
+ return this.relatedListName;
14
+ }
15
+ /**
16
+ * The method to set the value to relatedListName
17
+ * @param relatedListName A String representing the relatedListName
18
+ */
19
+ setRelatedListName(relatedListName) {
20
+ this.relatedListName = relatedListName;
21
+ this.keyModified.set("related_list_name", 1);
22
+ }
23
+ /**
24
+ * The method to get the durationConfiguration
25
+ * @returns An instance of Choice<string>
26
+ */
27
+ getDurationConfiguration() {
28
+ return this.durationConfiguration;
29
+ }
30
+ /**
31
+ * The method to set the value to durationConfiguration
32
+ * @param durationConfiguration An instance of Choice<string>
33
+ */
34
+ setDurationConfiguration(durationConfiguration) {
35
+ this.durationConfiguration = durationConfiguration;
36
+ this.keyModified.set("duration_configuration", 1);
37
+ }
38
+ /**
39
+ * The method to get the followedFields
40
+ * @returns An Array representing the followedFields
41
+ */
42
+ getFollowedFields() {
43
+ return this.followedFields;
44
+ }
45
+ /**
46
+ * The method to set the value to followedFields
47
+ * @param followedFields An Array representing the followedFields
48
+ */
49
+ setFollowedFields(followedFields) {
50
+ this.followedFields = followedFields;
51
+ this.keyModified.set("followed_fields", 1);
52
+ }
8
53
  /**
9
54
  * The method to get the module
10
55
  * @returns An instance of HistoryTrackingModule
@@ -8,5 +8,6 @@ export { InventoryMassConvertOperations } from "./inventory_mass_convert_operati
8
8
  export { GetScheduledJobsDetailsParam } from "./inventory_mass_convert_operations";
9
9
  export * as ActionResponse from "./action_response";
10
10
  export { User } from "./user";
11
+ export { ResponseWrapper } from "./response_wrapper";
11
12
  export * as ResponseHandler from "./response_handler";
12
13
  export { Status } from "./status";
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.Status = exports.ResponseHandler = exports.User = exports.ActionResponse = exports.GetScheduledJobsDetailsParam = exports.InventoryMassConvertOperations = exports.Module = exports.ConvertTo = exports.APIException = exports.BodyWrapper = exports.SuccessResponse = exports.RelatedModules = void 0;
22
+ exports.Status = exports.ResponseHandler = exports.ResponseWrapper = exports.User = exports.ActionResponse = exports.GetScheduledJobsDetailsParam = exports.InventoryMassConvertOperations = exports.Module = exports.ConvertTo = exports.APIException = exports.BodyWrapper = exports.SuccessResponse = exports.RelatedModules = void 0;
23
23
  var related_modules_1 = require("./related_modules");
24
24
  Object.defineProperty(exports, "RelatedModules", { enumerable: true, get: function () { return related_modules_1.RelatedModules; } });
25
25
  var success_response_1 = require("./success_response");
@@ -39,6 +39,8 @@ Object.defineProperty(exports, "GetScheduledJobsDetailsParam", { enumerable: tru
39
39
  exports.ActionResponse = __importStar(require("./action_response"));
40
40
  var user_1 = require("./user");
41
41
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_1.User; } });
42
+ var response_wrapper_1 = require("./response_wrapper");
43
+ Object.defineProperty(exports, "ResponseWrapper", { enumerable: true, get: function () { return response_wrapper_1.ResponseWrapper; } });
42
44
  exports.ResponseHandler = __importStar(require("./response_handler"));
43
45
  var status_1 = require("./status");
44
46
  Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return status_1.Status; } });
@@ -0,0 +1,30 @@
1
+ import { ResponseHandler } from "./response_handler";
2
+ import { Status } from "./status";
3
+ import { Model } from "../../../../../../utils/util/model";
4
+ declare class ResponseWrapper implements Model, ResponseHandler {
5
+ private data;
6
+ private keyModified;
7
+ /**
8
+ * The method to get the data
9
+ * @returns An Array representing the data
10
+ */
11
+ getData(): Array<Status>;
12
+ /**
13
+ * The method to set the value to data
14
+ * @param data An Array representing the data
15
+ */
16
+ setData(data: Array<Status>): void;
17
+ /**
18
+ * The method to check if the user has modified the given key
19
+ * @param key A String representing the key
20
+ * @returns A number representing the modification
21
+ */
22
+ isKeyModified(key: string): number | null | undefined;
23
+ /**
24
+ * The method to mark the given key as modified
25
+ * @param key A String representing the key
26
+ * @param modification A number representing the modification
27
+ */
28
+ setKeyModified(key: string, modification: number): void;
29
+ }
30
+ export { ResponseWrapper as MasterModel, ResponseWrapper as ResponseWrapper };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResponseWrapper = exports.MasterModel = void 0;
4
+ class ResponseWrapper {
5
+ constructor() {
6
+ this.keyModified = new Map();
7
+ }
8
+ /**
9
+ * The method to get the data
10
+ * @returns An Array representing the data
11
+ */
12
+ getData() {
13
+ return this.data;
14
+ }
15
+ /**
16
+ * The method to set the value to data
17
+ * @param data An Array representing the data
18
+ */
19
+ setData(data) {
20
+ this.data = data;
21
+ this.keyModified.set("data", 1);
22
+ }
23
+ /**
24
+ * The method to check if the user has modified the given key
25
+ * @param key A String representing the key
26
+ * @returns A number representing the modification
27
+ */
28
+ isKeyModified(key) {
29
+ if (this.keyModified.has(key)) {
30
+ return this.keyModified.get(key);
31
+ }
32
+ return null;
33
+ }
34
+ /**
35
+ * The method to mark the given key as modified
36
+ * @param key A String representing the key
37
+ * @param modification A number representing the modification
38
+ */
39
+ setKeyModified(key, modification) {
40
+ this.keyModified.set(key, modification);
41
+ }
42
+ }
43
+ exports.MasterModel = ResponseWrapper;
44
+ exports.ResponseWrapper = ResponseWrapper;
@@ -1,6 +1,5 @@
1
- import { ResponseHandler } from "./response_handler";
2
1
  import { Model } from "../../../../../../utils/util/model";
3
- declare class Status implements Model, ResponseHandler {
2
+ declare class Status implements Model {
4
3
  private totalCount;
5
4
  private convertedCount;
6
5
  private notConvertedCount;
@@ -107,6 +107,7 @@ declare class SectionField extends Fields implements Model {
107
107
  protected autoNumber71: AutoNumber;
108
108
  protected crypt: Crypt;
109
109
  protected tooltip: Tooltip;
110
+ protected historyTrackingEnabled: boolean;
110
111
  protected historyTracking: HistoryTracking;
111
112
  protected associationDetails: AssociationDetails;
112
113
  protected additionalColumn: string;
@@ -866,6 +867,16 @@ declare class SectionField extends Fields implements Model {
866
867
  * @param tooltip An instance of Tooltip
867
868
  */
868
869
  setTooltip(tooltip: Tooltip): void;
870
+ /**
871
+ * The method to get the historyTrackingEnabled
872
+ * @returns A Boolean representing the historyTrackingEnabled
873
+ */
874
+ getHistoryTrackingEnabled(): boolean;
875
+ /**
876
+ * The method to set the value to historyTrackingEnabled
877
+ * @param historyTrackingEnabled A Boolean representing the historyTrackingEnabled
878
+ */
879
+ setHistoryTrackingEnabled(historyTrackingEnabled: boolean): void;
869
880
  /**
870
881
  * The method to get the historyTracking
871
882
  * @returns An instance of HistoryTracking
@@ -1132,6 +1132,21 @@ class SectionField extends fields_1.Fields {
1132
1132
  this.tooltip = tooltip;
1133
1133
  this.keyModified.set("tooltip", 1);
1134
1134
  }
1135
+ /**
1136
+ * The method to get the historyTrackingEnabled
1137
+ * @returns A Boolean representing the historyTrackingEnabled
1138
+ */
1139
+ getHistoryTrackingEnabled() {
1140
+ return this.historyTrackingEnabled;
1141
+ }
1142
+ /**
1143
+ * The method to set the value to historyTrackingEnabled
1144
+ * @param historyTrackingEnabled A Boolean representing the historyTrackingEnabled
1145
+ */
1146
+ setHistoryTrackingEnabled(historyTrackingEnabled) {
1147
+ this.historyTrackingEnabled = historyTrackingEnabled;
1148
+ this.keyModified.set("history_tracking_enabled", 1);
1149
+ }
1135
1150
  /**
1136
1151
  * The method to get the historyTracking
1137
1152
  * @returns An instance of HistoryTracking
@@ -99,6 +99,7 @@ declare class ModuleFields extends Fields implements Model {
99
99
  protected autoNumber65: AutoNumber;
100
100
  protected crypt: Crypt;
101
101
  protected tooltip: Tooltip;
102
+ protected historyTrackingEnabled: boolean;
102
103
  protected historyTracking: HistoryTracking;
103
104
  protected associationDetails: AssociationDetails;
104
105
  protected additionalColumn: string;
@@ -799,6 +800,16 @@ declare class ModuleFields extends Fields implements Model {
799
800
  * @param tooltip An instance of Tooltip
800
801
  */
801
802
  setTooltip(tooltip: Tooltip): void;
803
+ /**
804
+ * The method to get the historyTrackingEnabled
805
+ * @returns A Boolean representing the historyTrackingEnabled
806
+ */
807
+ getHistoryTrackingEnabled(): boolean;
808
+ /**
809
+ * The method to set the value to historyTrackingEnabled
810
+ * @param historyTrackingEnabled A Boolean representing the historyTrackingEnabled
811
+ */
812
+ setHistoryTrackingEnabled(historyTrackingEnabled: boolean): void;
802
813
  /**
803
814
  * The method to get the historyTracking
804
815
  * @returns An instance of HistoryTracking
@@ -1042,6 +1042,21 @@ class ModuleFields extends fields_1.Fields {
1042
1042
  this.tooltip = tooltip;
1043
1043
  this.keyModified.set("tooltip", 1);
1044
1044
  }
1045
+ /**
1046
+ * The method to get the historyTrackingEnabled
1047
+ * @returns A Boolean representing the historyTrackingEnabled
1048
+ */
1049
+ getHistoryTrackingEnabled() {
1050
+ return this.historyTrackingEnabled;
1051
+ }
1052
+ /**
1053
+ * The method to set the value to historyTrackingEnabled
1054
+ * @param historyTrackingEnabled A Boolean representing the historyTrackingEnabled
1055
+ */
1056
+ setHistoryTrackingEnabled(historyTrackingEnabled) {
1057
+ this.historyTrackingEnabled = historyTrackingEnabled;
1058
+ this.keyModified.set("history_tracking_enabled", 1);
1059
+ }
1045
1060
  /**
1046
1061
  * The method to get the historyTracking
1047
1062
  * @returns An instance of HistoryTracking
@@ -22,8 +22,8 @@ export { Maps } from "./maps";
22
22
  export { TransferPipeline } from "./transfer_pipeline";
23
23
  export { ForecastCategory } from "./forecast_category";
24
24
  export { Stages } from "./stages";
25
- export * as ActionResponse from "./action_response";
26
25
  export { Delete } from "./delete";
26
+ export * as ActionResponse from "./action_response";
27
27
  export { TransferPipelineActionWrapper } from "./transfer_pipeline_action_wrapper";
28
28
  export * as TransferPipelineActionHandler from "./transfer_pipeline_action_handler";
29
29
  export { Pipeline } from "./pipeline";
@@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.SuccessResponse = exports.ActionWrapper = exports.Pipeline = exports.TransferPipelineActionHandler = exports.TransferPipelineActionWrapper = exports.Delete = exports.ActionResponse = exports.Stages = exports.ForecastCategory = exports.TransferPipeline = exports.Maps = exports.TransferPipelineSuccessResponse = exports.APIException = exports.BodyWrapper = exports.ResponseWrapper = exports.JsonDetails = exports.DPipeline = exports.TransferPipelinesParam = exports.DeletePipelineParam = exports.UpdatePipelineParam = exports.GetPipelineParam = exports.UpdatePipelinesParam = exports.CreatePipelineParam = exports.GetPipelinesParam = exports.PipelineOperations = exports.ActionHandler = exports.ResponseHandler = exports.DPipelineWrapper = exports.TransferPipelineWrapper = exports.TransferPipelineActionResponse = exports.TPipeline = void 0;
22
+ exports.SuccessResponse = exports.ActionWrapper = exports.Pipeline = exports.TransferPipelineActionHandler = exports.TransferPipelineActionWrapper = exports.ActionResponse = exports.Delete = exports.Stages = exports.ForecastCategory = exports.TransferPipeline = exports.Maps = exports.TransferPipelineSuccessResponse = exports.APIException = exports.BodyWrapper = exports.ResponseWrapper = exports.JsonDetails = exports.DPipeline = exports.TransferPipelinesParam = exports.DeletePipelineParam = exports.UpdatePipelineParam = exports.GetPipelineParam = exports.UpdatePipelinesParam = exports.CreatePipelineParam = exports.GetPipelinesParam = exports.PipelineOperations = exports.ActionHandler = exports.ResponseHandler = exports.DPipelineWrapper = exports.TransferPipelineWrapper = exports.TransferPipelineActionResponse = exports.TPipeline = void 0;
23
23
  var t_pipeline_1 = require("./t_pipeline");
24
24
  Object.defineProperty(exports, "TPipeline", { enumerable: true, get: function () { return t_pipeline_1.TPipeline; } });
25
25
  exports.TransferPipelineActionResponse = __importStar(require("./transfer_pipeline_action_response"));
@@ -65,9 +65,9 @@ var forecast_category_1 = require("./forecast_category");
65
65
  Object.defineProperty(exports, "ForecastCategory", { enumerable: true, get: function () { return forecast_category_1.ForecastCategory; } });
66
66
  var stages_1 = require("./stages");
67
67
  Object.defineProperty(exports, "Stages", { enumerable: true, get: function () { return stages_1.Stages; } });
68
- exports.ActionResponse = __importStar(require("./action_response"));
69
68
  var delete_1 = require("./delete");
70
69
  Object.defineProperty(exports, "Delete", { enumerable: true, get: function () { return delete_1.Delete; } });
70
+ exports.ActionResponse = __importStar(require("./action_response"));
71
71
  var transfer_pipeline_action_wrapper_1 = require("./transfer_pipeline_action_wrapper");
72
72
  Object.defineProperty(exports, "TransferPipelineActionWrapper", { enumerable: true, get: function () { return transfer_pipeline_action_wrapper_1.TransferPipelineActionWrapper; } });
73
73
  exports.TransferPipelineActionHandler = __importStar(require("./transfer_pipeline_action_handler"));
@@ -62,7 +62,7 @@ Constants.REQUEST_METHOD_PUT = "PUT";
62
62
  Constants.REQUEST_METHOD_DELETE = "DELETE";
63
63
  Constants.REQUEST_METHOD_GET = "GET";
64
64
  Constants.ZOHO_SDK = "X-ZOHO-SDK";
65
- Constants.SDK_VERSION = "1.0.0";
65
+ Constants.SDK_VERSION = "2.0.0";
66
66
  Constants.MYSQL_HOST = "localhost";
67
67
  Constants.MYSQL_DATABASE_NAME = "zohooauth";
68
68
  Constants.MYSQL_USER_NAME = "root";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohocrm/typescript-sdk-8.0",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "TypeScript SDK for Zoho CRM",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",