Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing fields in some API models/Open for PRs #47

Open
andrewrowe-wk opened this issue Jun 14, 2024 · 1 comment
Open

Missing fields in some API models/Open for PRs #47

andrewrowe-wk opened this issue Jun 14, 2024 · 1 comment

Comments

@andrewrowe-wk
Copy link

andrewrowe-wk commented Jun 14, 2024

Hello! We use the Anaplan Java Client library and have gotten tons of mileage out of it. Thank you for maintaining it!

One thing I have noticed is that some of the DTOs do not support the full range of fields that get returned by the API. For example, on the ModelData.java we have the following fields:

  • id
  • name
  • currentWorkspaceId
  • memoryUsage
    But the full range of fields if found here https://api.anaplan.com/2/0/objects/model:
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "version": "1.0",
    "title": "model",
    "description": "model",
    "type": "object",
    "name": "models",
    "order": [],
    "properties": {
        "id": {
            "description": "id",
            "type": "string"
        },
        "name": {
            "description": "name",
            "type": "string"
        },
        "activeState": {
            "description": "state",
            "type": "string"
        },
        "currentWorkspaceId": {
            "description": "workspace",
            "type": "string"
        },
        "currentWorkspaceName": {
            "description": "workspace",
            "type": "string"
        },
        "modelUrl": {
            "description": "model url",
            "type": "string"
        },
        "categoryValues": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "description": "Category value Id",
                        "type": "string"
                    },
                    "attribute": {
                        "description": "Category value",
                        "type": "string"
                    },
                    "categoryId": {
                        "description": "Category Id",
                        "type": "string"
                    },
                    "categoryName": {
                        "description": "Category name",
                        "type": {
                            "enum": [
                                "App",
                                "Environment",
                                "Department",
                                "Region",
                                "Planning Cycle"
                            ]
                        }
                    }
                }
            },
            "minItems": 0,
            "maxItems": 5
        },
        "isoCreationDate": {
            "description": "isoCreationDate",
            "type": "string"
        },
        "lastModified": {
            "description": "lastModified",
            "type": "string"
        },
        "lastModifiedByUserGuid": {
            "description": "lastModifiedByUserGuid",
            "type": "string"
        },
        "lastSavedSerialNumber": {
            "description": "lastSavedSerialNumber",
            "type": "string"
        },
        "memoryUsage": {
            "description": "memoryUsage",
            "type": "number"
        },
        "modelTransactionRunning": {
            "description": "modelTransactionRunning",
            "type": "boolean"
        }
    },
    "primaryKey": [
        "id"
    ],
    "foreignKeys": [
        {
            "reference": {
                "datapackage": "https://api.anaplan.com/2/0/objects/user",
                "resource": "user",
                "type": "MANY"
            }
        },
        {
            "reference": {
                "datapackage": "https://api.anaplan.com/2/0/objects/workspace",
                "resource": "workspace",
                "type": "ONE"
            }
        }
    ],
    "bulk": []
}

Do you accept PRs? If I were to add these fields, would it be considered? I have tried using the library and subclassing the things that I need, but it is so extensive, that modifying the original makes the most sense.

Thanks,

Andrew

PS

Is https://artifacts.anaplan-np.net/ still active? I see references to it in the pom.xml, but it looks like a dead site.

@andrewrowe-wk
Copy link
Author

Sorry for the ping, but wanted to make sure @skharab-anaplan and @ajunnola-anaplan saw this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant