redux-clerk2 2.0.24 → 2.0.26
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/lib/actions/Bulk.js +5 -1
- package/lib/actions/Create.js +5 -1
- package/lib/actions/Fetch.js +8 -3
- package/lib/actions/Perform.js +5 -1
- package/lib/actions/Remove.js +5 -1
- package/lib/actions/Update.js +5 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/actions/Bulk.js +5 -1
- package/src/actions/Create.js +5 -1
- package/src/actions/Fetch.js +8 -3
- package/src/actions/Perform.js +5 -1
- package/src/actions/Remove.js +5 -1
- package/src/actions/Update.js +5 -1
package/lib/actions/Bulk.js
CHANGED
|
@@ -126,11 +126,15 @@ var Bulk = exports.Bulk = function (_BaseAction) {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
if (options && options.propertycode) {
|
|
130
|
+
propertycode = options.propertycode;
|
|
131
|
+
}
|
|
132
|
+
|
|
129
133
|
if (propertycode !== null) {
|
|
130
134
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
131
135
|
}
|
|
132
136
|
|
|
133
|
-
if (options.url) {
|
|
137
|
+
if (options && options.url) {
|
|
134
138
|
url = url + '/' + options.url;
|
|
135
139
|
}
|
|
136
140
|
|
package/lib/actions/Create.js
CHANGED
|
@@ -118,11 +118,15 @@ var Create = exports.Create = function (_BaseAction) {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
if (options && options.propertycode) {
|
|
122
|
+
propertycode = options.propertycode;
|
|
123
|
+
}
|
|
124
|
+
|
|
121
125
|
if (propertycode !== null) {
|
|
122
126
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
123
127
|
}
|
|
124
128
|
|
|
125
|
-
if (options.url) {
|
|
129
|
+
if (options && options.url) {
|
|
126
130
|
url = url + "/" + options.url;
|
|
127
131
|
}
|
|
128
132
|
|
package/lib/actions/Fetch.js
CHANGED
|
@@ -120,6 +120,10 @@ var Fetch = exports.Fetch = function (_BaseAction) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
if (options && options.propertycode) {
|
|
124
|
+
propertycode = options.propertycode;
|
|
125
|
+
}
|
|
126
|
+
|
|
123
127
|
if (propertycode !== null) {
|
|
124
128
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
125
129
|
}
|
|
@@ -159,12 +163,13 @@ var Fetch = exports.Fetch = function (_BaseAction) {
|
|
|
159
163
|
|
|
160
164
|
//apiparams = queryString.stringify(parameters);
|
|
161
165
|
//const url = `${API_ROOT}/contacts/aarhotel`;
|
|
162
|
-
if (options.url) {
|
|
163
|
-
url = url + '/' + options.url;
|
|
164
|
-
}
|
|
165
166
|
//url = `${url}?${apiparams}`;
|
|
166
167
|
}
|
|
167
168
|
|
|
169
|
+
if (options.url) {
|
|
170
|
+
url = url + '/' + options.url;
|
|
171
|
+
}
|
|
172
|
+
|
|
168
173
|
return api.get(url, { params: apiparams }).then(function (response) {
|
|
169
174
|
if (displayLoading) {
|
|
170
175
|
dispatch(notifyDismiss(msguid));
|
package/lib/actions/Perform.js
CHANGED
|
@@ -125,13 +125,17 @@ var Perform = exports.Perform = function (_BaseAction) {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
if (options && options.propertycode) {
|
|
129
|
+
propertycode = options.propertycode;
|
|
130
|
+
}
|
|
131
|
+
|
|
128
132
|
if (propertycode !== null) {
|
|
129
133
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
//console.log(`options`, options);
|
|
133
137
|
|
|
134
|
-
if (options.url) {
|
|
138
|
+
if (options && options.url) {
|
|
135
139
|
url = url + '/' + options.url;
|
|
136
140
|
}
|
|
137
141
|
|
package/lib/actions/Remove.js
CHANGED
|
@@ -127,11 +127,15 @@ var Remove = exports.Remove = function (_BaseAction) {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
if (options && options.propertycode) {
|
|
131
|
+
propertycode = options.propertycode;
|
|
132
|
+
}
|
|
133
|
+
|
|
130
134
|
if (propertycode !== null) {
|
|
131
135
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
132
136
|
}
|
|
133
137
|
|
|
134
|
-
if (options.url) {
|
|
138
|
+
if (options && options.url) {
|
|
135
139
|
url = url + '/' + options.url;
|
|
136
140
|
}
|
|
137
141
|
|
package/lib/actions/Update.js
CHANGED
|
@@ -105,11 +105,15 @@ var Update = exports.Update = function (_BaseAction) {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
if (options && options.propertycode) {
|
|
109
|
+
propertycode = options.propertycode;
|
|
110
|
+
}
|
|
111
|
+
|
|
108
112
|
if (propertycode !== null) {
|
|
109
113
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
110
114
|
}
|
|
111
115
|
|
|
112
|
-
if (options.url) {
|
|
116
|
+
if (options && options.url) {
|
|
113
117
|
url = url + '/' + options.url;
|
|
114
118
|
}
|
|
115
119
|
|
package/package.json
CHANGED
package/src/.DS_Store
CHANGED
|
Binary file
|
package/src/actions/Bulk.js
CHANGED
|
@@ -145,11 +145,15 @@ export class Bulk extends BaseAction {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
+
if(options && options.propertycode){
|
|
149
|
+
propertycode = options.propertycode;
|
|
150
|
+
}
|
|
151
|
+
|
|
148
152
|
if (propertycode !== null) {
|
|
149
153
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
150
154
|
}
|
|
151
155
|
|
|
152
|
-
if(options.url){
|
|
156
|
+
if(options && options.url){
|
|
153
157
|
url = `${url}/${options.url}`;
|
|
154
158
|
}
|
|
155
159
|
|
package/src/actions/Create.js
CHANGED
|
@@ -122,11 +122,15 @@ export class Create extends BaseAction {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
if(options && options.propertycode){
|
|
126
|
+
propertycode = options.propertycode;
|
|
127
|
+
}
|
|
128
|
+
|
|
125
129
|
if (propertycode !== null) {
|
|
126
130
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
127
131
|
}
|
|
128
132
|
|
|
129
|
-
if(options.url){
|
|
133
|
+
if(options && options.url){
|
|
130
134
|
url = `${url}/${options.url}`;
|
|
131
135
|
}
|
|
132
136
|
|
package/src/actions/Fetch.js
CHANGED
|
@@ -95,6 +95,10 @@ export class Fetch extends BaseAction {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
if(options && options.propertycode){
|
|
99
|
+
propertycode = options.propertycode;
|
|
100
|
+
}
|
|
101
|
+
|
|
98
102
|
if(propertycode !== null){
|
|
99
103
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
100
104
|
}
|
|
@@ -137,11 +141,12 @@ export class Fetch extends BaseAction {
|
|
|
137
141
|
|
|
138
142
|
//apiparams = queryString.stringify(parameters);
|
|
139
143
|
//const url = `${API_ROOT}/contacts/aarhotel`;
|
|
140
|
-
if(options.url){
|
|
141
|
-
url = `${url}/${options.url}`;
|
|
142
|
-
}
|
|
143
144
|
//url = `${url}?${apiparams}`;
|
|
144
145
|
}
|
|
146
|
+
|
|
147
|
+
if(options.url){
|
|
148
|
+
url = `${url}/${options.url}`;
|
|
149
|
+
}
|
|
145
150
|
|
|
146
151
|
return api.get(url, { params: apiparams })
|
|
147
152
|
.then(response => {
|
package/src/actions/Perform.js
CHANGED
|
@@ -103,13 +103,17 @@ export class Perform extends BaseAction {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
if(options && options.propertycode){
|
|
107
|
+
propertycode = options.propertycode;
|
|
108
|
+
}
|
|
109
|
+
|
|
106
110
|
if(propertycode !== null){
|
|
107
111
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
//console.log(`options`, options);
|
|
111
115
|
|
|
112
|
-
if(options.url){
|
|
116
|
+
if(options && options.url){
|
|
113
117
|
url = `${url}/${options.url}`;
|
|
114
118
|
}
|
|
115
119
|
|
package/src/actions/Remove.js
CHANGED
|
@@ -95,11 +95,15 @@ export class Remove extends BaseAction {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
if(options && options.propertycode){
|
|
99
|
+
propertycode = options.propertycode;
|
|
100
|
+
}
|
|
101
|
+
|
|
98
102
|
if(propertycode !== null){
|
|
99
103
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
100
104
|
}
|
|
101
105
|
|
|
102
|
-
if(options.url){
|
|
106
|
+
if(options && options.url){
|
|
103
107
|
url = `${url}/${options.url}`;
|
|
104
108
|
}
|
|
105
109
|
|
package/src/actions/Update.js
CHANGED
|
@@ -82,11 +82,15 @@ export class Update extends BaseAction {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
if(options && options.propertycode){
|
|
86
|
+
propertycode = options.propertycode;
|
|
87
|
+
}
|
|
88
|
+
|
|
85
89
|
if(propertycode !== null){
|
|
86
90
|
url = settings.url.replace(/#@propertycode@#/i, propertycode);
|
|
87
91
|
}
|
|
88
92
|
|
|
89
|
-
if(options.url){
|
|
93
|
+
if(options && options.url){
|
|
90
94
|
url = `${url}/${options.url}`;
|
|
91
95
|
}
|
|
92
96
|
|