Skip to content

Commit

Permalink
uncommented wa-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Dec 10, 2024
1 parent 7e1952f commit 64d3454
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
attachmentsEnabled: true,
showNodeLabel: true,
mutable: true,
filters: ['whatsapp', 'classifier', 'ticketer', 'optins'],
filters: ['whatsapp', 'classifier', 'ticketer', 'optins', 'groups'],

excludeTypes: [
'add_contact_urn',
Expand Down Expand Up @@ -351,7 +351,7 @@
globals: base + 'globals',
groups: base + 'groups',
fields: base + 'fields?scope=contact',
waGroupFields: base + 'fields?scope=group',
waGroupFields: base + 'fields?scope=wa_group',
labels: base + 'labels',
optins: base + 'optins',
channels: base + 'channels',
Expand Down
12 changes: 6 additions & 6 deletions src/external/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,12 @@ export const createAssetStore = (endpoints: Endpoints): Promise<AssetStore> => {
id: 'key',
items: {}
},
// waGroupFields: {
// endpoint: getURL(endpoints.waGroupFields),
// type: AssetType.Field,
// id: 'key',
// items: {}
// },
waGroupFields: {
endpoint: getURL(endpoints.waGroupFields),
type: AssetType.Field,
id: 'key',
items: {}
},
globals: {
endpoint: getURL(endpoints.globals),
type: AssetType.Global,
Expand Down
2 changes: 1 addition & 1 deletion src/flowTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface Endpoints {
resthooks: string;
recents: string;
fields: string;
// waGroupFields: string;
waGroupFields: string;
globals: string;
groups: string;
recipients: string;
Expand Down
2 changes: 1 addition & 1 deletion src/test/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const config: FlowEditorConfig = {
globals: '/assets/globals.json',
groups: '/assets/groups.json',
fields: '/assets/fields.json',
// waGroupFields: '/assets/fields.json',
waGroupFields: '/assets/fields.json',
recipients: '/assets/recipients.json',
contacts: '/assets/recipients.json',
labels: '/assets/labels.json',
Expand Down
2 changes: 1 addition & 1 deletion src/test/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const TEST_DEFINITION: FlowDefinition = {
export const EMPTY_TEST_ASSETS = {
channels: { items: {}, type: AssetType.Channel },
fields: { items: {}, type: AssetType.Field },
// waGroupFields: { items: {}, type: AssetType.Field },
waGroupFields: { items: {}, type: AssetType.Field },
languages: { items: {}, type: AssetType.Language },
labels: { items: {}, type: AssetType.Label },
results: { items: {}, type: AssetType.Result },
Expand Down
2 changes: 1 addition & 1 deletion src/testUtils/assetCreators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export const getActionFormProps = (action: AnyAction): ActionFormProps => ({
assetStore: {
channels: { items: {}, type: AssetType.Channel },
fields: { items: {}, type: AssetType.Field },
// waGroupFields: { items: {}, type: AssetType.Field },
waGroupFields: { items: {}, type: AssetType.Field },
languages: { items: {}, type: AssetType.Language },
labels: { items: {}, type: AssetType.Label },
results: { items: {}, type: AssetType.Result },
Expand Down

0 comments on commit 64d3454

Please sign in to comment.