@veritree/services 2.51.0 → 2.53.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/package.json
CHANGED
|
@@ -56,14 +56,24 @@ class OrganizationsApi extends Api {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
pins(orgId) {
|
|
59
|
+
const all = async (params) => {
|
|
60
|
+
const url = `${this.getUrl()}/${orgId}/pins/${this.getUrlParams(
|
|
61
|
+
params
|
|
62
|
+
)}`;
|
|
63
|
+
|
|
64
|
+
return await this.get(url);
|
|
65
|
+
};
|
|
66
|
+
|
|
59
67
|
const single = async (pinId, params) => {
|
|
60
68
|
const url = `${this.getUrl()}/${orgId}/pins/${pinId}${this.getUrlParams(
|
|
61
69
|
params
|
|
62
70
|
)}`;
|
|
71
|
+
|
|
63
72
|
return await this.get(url);
|
|
64
73
|
};
|
|
65
74
|
|
|
66
75
|
return {
|
|
76
|
+
all,
|
|
67
77
|
single,
|
|
68
78
|
};
|
|
69
79
|
}
|
|
@@ -134,6 +134,27 @@ class SponsorsApi extends Api {
|
|
|
134
134
|
all,
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
pins(orgId) {
|
|
139
|
+
const all = async (params) => {
|
|
140
|
+
const url = `${this.getUrl()}/${orgId}/pins/${this.getUrlParams(params)}`;
|
|
141
|
+
|
|
142
|
+
return await this.get(url);
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const single = async (pinId, params) => {
|
|
146
|
+
const url = `${this.getUrl()}/${orgId}/pins/${pinId}${this.getUrlParams(
|
|
147
|
+
params
|
|
148
|
+
)}`;
|
|
149
|
+
|
|
150
|
+
return await this.get(url);
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
return {
|
|
154
|
+
all,
|
|
155
|
+
single,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
137
158
|
}
|
|
138
159
|
|
|
139
160
|
export const Sponsors = new SponsorsApi();
|